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

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10231
// Function ID: 79038
2026-07-20 16:05:17 +00:00
// Name: playInAppMessageSound
// Dependencies: [0, 0, 0, 0, 0, 0]
// Exports: playInAppMessageSound
2026-07-21 06:55:02 +00:00
// Module 10231 (playInAppMessageSound)
import __exportStarResult1 from "__exportStarResult1";
import { isInAppMessageSoundsEnabled as closure_3 } from "__exportStarResult1";
import { InAppNotificationTypes } from "__exportStarResult1";
2026-07-20 16:05:17 +00:00
let closure_5 = 0;
2026-07-21 06:55:02 +00:00
const result = require("__exportStarResult1").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 (callback()) {
if (!soundDisabled.isSoundDisabled("message1")) {
const _Date = Date;
const timestamp = Date.now();
if (timestamp - closure_5 >= 1000) {
closure_5 = timestamp;
arg1(dependencyMap[4]).playSound("message1", 0.4);
const obj = arg1(dependencyMap[4]);
}
}
}
}
const obj2 = arg1(dependencyMap[3]);
}
};