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

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10231
2026-07-21 22:01:30 +00:00
// Function ID: 79049
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)
2026-07-21 22:01:30 +00:00
import closure_2 from "result";
import { isInAppMessageSoundsEnabled as closure_3 } from "result";
import { InAppNotificationTypes } from "result";
import result from "result";
2026-07-20 16:05:17 +00:00
let closure_5 = 0;
2026-07-21 22:01:30 +00:00
result = result.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]);
}
};