decord/stable/source/modules/applications/ApplicationPresenceUtils.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

21 lines
737 B
TypeScript

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