decord/source/modules/notifications/native/playInAppMessageSound.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

37 lines
1.2 KiB
TypeScript

// Module ID: 10135
// Function ID: 10136
// Name: playInAppMessageSound
// Dependencies: [10113, 10136, 1074, 1608, 9934, 2]
// Exports: playInAppMessageSound
// Module 10135 (playInAppMessageSound)
import MetaQuestUtils from "MetaQuestUtils" /* 1608 */;
import NotificationSettingsStore from "NotificationSettingsStore" /* 10113 */;
require = fn;
let closure_3 = fn(10136).isInAppMessageSoundsEnabled;
const InAppNotificationTypes = fn(1074).InAppNotificationTypes;
const message1 = "message1";
let timestamp = 0;
const size = fn(2);
const result = size.fileFinishedImporting("modules/notifications/native/playInAppMessageSound.tsx");
export const playInAppMessageSound = function playInAppMessageSound(notification) {
if (notification.type === InAppNotificationTypes.MESSAGE) {
if (obj2.isMetaQuest()) {
if (closure_3()) {
if (!NotificationSettingsStore.isSoundDisabled(message1)) {
const _Date = Date;
timestamp = Date.now();
if (timestamp - timestamp >= 1000) {
tmp8(9934).playSound(tmp3, 0.4);
const tmp8Result = tmp8(9934);
}
}
tmp3 = message1;
}
}
obj2 = MetaQuestUtils;
tmp8 = require;
}
};