decord/source/modules/notifications/native/playInAppMessageSound.tsx
2026-07-25 08:10:48 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 10207
// Function ID: 78978
// Name: playInAppMessageSound
// Dependencies: [10183, 10208, 653, 1553, 10209, 2]
// Exports: playInAppMessageSound
// Module 10207 (playInAppMessageSound)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { isInAppMessageSoundsEnabled as closure_3 } from "isInAppMessageSoundsEnabled";
import { InAppNotificationTypes } from "ME";
const require = arg1;
let c5 = 0;
const result = require("ME").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 - timestamp >= 1000) {
require(10209) /* createSound */.playSound("message1", 0.4);
const obj = require(10209) /* createSound */;
}
}
}
}
obj2 = require(1553) /* isMetaQuest */;
}
};