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

38 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9755
// Function ID: 9756
2026-07-20 16:05:17 +00:00
// Name: playInAppMessageSound
// Dependencies: [9736, 9756, 1074, 1610, 9552, 2]
2026-07-20 16:05:17 +00:00
// Exports: playInAppMessageSound
// Module 9755 (playInAppMessageSound)
import MetaQuestUtils from "MetaQuestUtils" /* 1610 */;
import NotificationSettingsStore from "NotificationSettingsStore" /* 9736 */;
2026-07-20 16:05:17 +00:00
require = fn;
let closure_3 = fn(9756).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(9552).playSound(tmp3, 0.4);
const tmp8Result = tmp8(9552);
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
}
};