decord/alpha/source/modules/applications/ApplicationPresenceUtils.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

21 lines
737 B
TypeScript

// Module ID: 8575
// Function ID: 8576
// Name: ApplicationPresenceUtils
// Dependencies: [2042, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 8575 (ApplicationPresenceUtils)
import ChannelStore from "ChannelStore" /* 2042 */;
const size = fn(2);
const result = size.fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(bot, channelId) {
const channel = ChannelStore.getChannel(channelId);
let tmp = null != channel && bot.bot && channel.isPrivate();
if (tmp) {
const rawRecipients = channel.rawRecipients;
tmp = null == rawRecipients.find((id) => id.id === bot.id);
}
return tmp;
};