decord/source/modules/notifications/native/playInAppMessageSound.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10274
// Function ID: 79325
2026-07-20 16:05:17 +00:00
// Name: playInAppMessageSound
2026-07-24 07:16:23 +00:00
// Dependencies: [10250, 10275, 653, 1553, 10276, 2]
2026-07-20 16:05:17 +00:00
// Exports: playInAppMessageSound
2026-07-24 07:16:23 +00:00
// Module 10274 (playInAppMessageSound)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { isInAppMessageSoundsEnabled as closure_3 } from "isInAppMessageSoundsEnabled";
import { InAppNotificationTypes } from "ME";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
let c5 = 0;
const result = require("ME").fileFinishedImporting("modules/notifications/native/playInAppMessageSound.tsx");
2026-07-20 16:05:17 +00:00
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();
2026-07-23 10:11:24 +00:00
if (timestamp - timestamp >= 1000) {
2026-07-24 07:16:23 +00:00
require(10276) /* createSound */.playSound("message1", 0.4);
const obj = require(10276) /* createSound */;
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-07-23 10:11:24 +00:00
obj2 = require(1553) /* isMetaQuest */;
2026-07-20 16:05:17 +00:00
}
};