32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Module ID: 10232
|
|
// Function ID: 79062
|
|
// Name: playInAppMessageSound
|
|
// Dependencies: [0, 0, 0, 0, 0, 0]
|
|
// Exports: playInAppMessageSound
|
|
|
|
// Module 10232 (playInAppMessageSound)
|
|
import __exportStarResult1 from "__exportStarResult1";
|
|
import { isInAppMessageSoundsEnabled as closure_3 } from "__exportStarResult1";
|
|
import { InAppNotificationTypes } from "__exportStarResult1";
|
|
|
|
let closure_5 = 0;
|
|
const result = require("__exportStarResult1").fileFinishedImporting("modules/notifications/native/playInAppMessageSound.tsx");
|
|
|
|
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]);
|
|
}
|
|
};
|