decord/alpha/source/modules/applications/ApplicationPresenceUtils.tsx
github-actions 52331fb8ae chore: update source for alpha 349.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
2026-09-30 07:29:52 +00:00

21 lines
737 B
TypeScript

// Module ID: 7872
// Function ID: 7873
// Name: ApplicationPresenceUtils
// Dependencies: [2045, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 7872 (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;
};