2026-09-11 10:30:06 +00:00
|
|
|
// Module ID: 10194
|
|
|
|
|
// Function ID: 10195
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: playInAppMessageSound
|
2026-09-11 10:30:06 +00:00
|
|
|
// Dependencies: [10173, 10195, 1074, 1608, 9995, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: playInAppMessageSound
|
|
|
|
|
|
2026-09-11 10:30:06 +00:00
|
|
|
// Module 10194 (playInAppMessageSound)
|
2026-09-10 05:38:07 +00:00
|
|
|
import MetaQuestUtils from "MetaQuestUtils" /* 1608 */;
|
2026-09-11 10:30:06 +00:00
|
|
|
import NotificationSettingsStore from "NotificationSettingsStore" /* 10173 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-09-11 10:30:06 +00:00
|
|
|
let closure_3 = fn(10195).isInAppMessageSoundsEnabled;
|
2026-09-10 05:38:07 +00:00
|
|
|
const InAppNotificationTypes = fn(1074).InAppNotificationTypes;
|
2026-07-29 08:29:29 +00:00
|
|
|
const message1 = "message1";
|
2026-09-10 05:38:07 +00:00
|
|
|
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()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
if (closure_3()) {
|
|
|
|
|
if (!NotificationSettingsStore.isSoundDisabled(message1)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _Date = Date;
|
2026-09-10 05:38:07 +00:00
|
|
|
timestamp = Date.now();
|
2026-07-23 10:11:24 +00:00
|
|
|
if (timestamp - timestamp >= 1000) {
|
2026-09-11 10:30:06 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2 = MetaQuestUtils;
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp8 = require;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|