decord/alpha/source/modules/applications/ApplicationPresenceUtils.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

21 lines
737 B
TypeScript

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