decord/source/modules/notifications/native/playInAppMessageSound.tsx
2026-08-03 11:20:01 +00:00

35 lines
1.1 KiB
TypeScript

// Module ID: 10422
// Function ID: 10423
// Name: playInAppMessageSound
// Dependencies: [10398, 10423, 676, 1577, 10424, 2]
// Exports: playInAppMessageSound
// Module 10422 (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(10424).playSound(tmp3, 0.4);
const tmp8Result = tmp8(10424);
}
}
tmp3 = message1;
}
}
obj2 = require(1577) /* isMetaQuest */;
tmp8 = require;
}
};