decord/beta/source/modules/applications/ApplicationPresenceUtils.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

21 lines
737 B
TypeScript

// Module ID: 7677
// Function ID: 7678
// Name: ApplicationPresenceUtils
// Dependencies: [2045, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 7677 (ApplicationPresenceUtils)
import ChannelStore from "ChannelStore" /* 2045 */;
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;
};