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

39 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 12533
// Function ID: 12534
2026-07-20 16:05:17 +00:00
// Name: playInAppMessageSound
2026-10-09 10:00:15 +00:00
// Dependencies: [12517, 12534, 1085, 1628, 10940, 2]
2026-07-20 16:05:17 +00:00
// Exports: playInAppMessageSound
2026-10-09 10:00:15 +00:00
// Module 12533 (playInAppMessageSound)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import MetaQuestUtils from "MetaQuestUtils" /* 1628 */;
import InAppMessageSoundsStore from "InAppMessageSoundsStore" /* 12534 */;
import NotificationSettingsStore from "NotificationSettingsStore" /* 12517 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
let closure_3 = InAppMessageSoundsStore.isInAppMessageSoundsEnabled;
const InAppNotificationTypes = Constants.InAppNotificationTypes;
2026-07-29 08:29:29 +00:00
const message1 = "message1";
let timestamp = 0;
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) {
2026-10-03 08:58:59 +00:00
const obj2 = MetaQuestUtils;
const tmp8 = require;
2026-07-20 16:05:17 +00:00
if (obj2.isMetaQuest()) {
if (closure_3()) {
2026-10-03 08:58:59 +00:00
const tmp3 = message1;
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) {
2026-10-09 10:00:15 +00:00
const tmp8Result = tmp8(10940);
2026-10-03 08:58:59 +00:00
tmp8Result.playSound(tmp3, 0.4);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
};