decord/source/modules/notifications/native/playInAppMessageSound.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 10194
// Function ID: 10195
2026-07-20 16:05:17 +00:00
// Name: playInAppMessageSound
// Dependencies: [10173, 10195, 1074, 1608, 9995, 2]
2026-07-20 16:05:17 +00:00
// Exports: playInAppMessageSound
// Module 10194 (playInAppMessageSound)
import MetaQuestUtils from "MetaQuestUtils" /* 1608 */;
import NotificationSettingsStore from "NotificationSettingsStore" /* 10173 */;
2026-07-20 16:05:17 +00:00
require = fn;
let closure_3 = fn(10195).isInAppMessageSoundsEnabled;
const InAppNotificationTypes = fn(1074).InAppNotificationTypes;
2026-07-29 08:29:29 +00:00
const message1 = "message1";
let timestamp = 0;
const size = fn(2);
const result = size.fileFinishedImporting("modules/notifications/native/playInAppMessageSound.tsx");
2026-07-20 16:05:17 +00:00
export const playInAppMessageSound = function playInAppMessageSound(notification) {
if (notification.type === InAppNotificationTypes.MESSAGE) {
if (obj2.isMetaQuest()) {
if (closure_3()) {
if (!NotificationSettingsStore.isSoundDisabled(message1)) {
2026-07-20 16:05:17 +00:00
const _Date = Date;
timestamp = Date.now();
2026-07-23 10:11:24 +00:00
if (timestamp - timestamp >= 1000) {
tmp8(9995).playSound(tmp3, 0.4);
const tmp8Result = tmp8(9995);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
tmp3 = message1;
2026-07-20 16:05:17 +00:00
}
}
obj2 = MetaQuestUtils;
2026-07-29 08:29:29 +00:00
tmp8 = require;
2026-07-20 16:05:17 +00:00
}
};