decord/source/modules/notifications/native/playInAppMessageSound.tsx
2026-08-06 08:05:19 +00:00

35 lines
1.1 KiB
TypeScript

// Module ID: 9694
// Function ID: 9695
// Name: playInAppMessageSound
// Dependencies: [9670, 9695, 676, 1605, 9696, 2]
// Exports: playInAppMessageSound
// Module 9694 (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(9696).playSound(tmp3, 0.4);
const tmp8Result = tmp8(9696);
}
}
tmp3 = message1;
}
}
obj2 = require(1605) /* isMetaQuest */;
tmp8 = require;
}
};