Files
discord-decomp/sources/modules/applications/ApplicationPresenceUtils.tsx
T
2026-07-27 16:20:00 +03:00

16 lines
1.2 KiB
TypeScript

/* Metro module 8753; source: modules/applications/ApplicationPresenceUtils.tsx; dependencies: [1379, 2] */
function _fun68530(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8938:6, offset: 0x01c52a19, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/ApplicationPresenceUtils.tsx');
exports.shouldDisableUserPresenceInChannel = shouldDisableUserPresenceInChannel;
}
function shouldDisableUserPresenceInChannel(a0, a1) { // fn#68531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8938:226, offset: 0x01c52a83, size: 90 bytes, params: 3, frame: 14
const env0_0 = a0;
const channel = ChannelStore.getChannel(a1);
return channel != null && a0.bot && channel.isPrivate() && channel.rawRecipients.find(_fun68532) == null;
}