decord/source/modules/notifications/native/playInAppMessageSound.tsx
2026-07-30 10:14:41 +00:00

35 lines
1.1 KiB
TypeScript

// Module ID: 10265
// Function ID: 10266
// Name: playInAppMessageSound
// Dependencies: [10241, 10266, 676, 1577, 10267, 2]
// Exports: playInAppMessageSound
// Module 10265 (playInAppMessageSound)
import DesktopNotificationTypes from "DesktopNotificationTypes";
import { isInAppMessageSoundsEnabled as closure_3 } from "isInAppMessageSoundsEnabled";
import { InAppNotificationTypes } from "ME";
const require = arg1;
const message1 = "message1";
let c6 = 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) {
tmp8(10267).playSound(tmp3, 0.4);
const tmp8Result = tmp8(10267);
}
}
tmp3 = message1;
}
}
obj2 = require(1577) /* isMetaQuest */;
tmp8 = require;
}
};