decord/stable/source/modules/applications/ApplicationPresenceUtils.tsx
2026-10-06 22:12:49 +00:00

22 lines
776 B
TypeScript

// Module ID: 7681
// Function ID: 7682
// Name: ApplicationPresenceUtils
// Dependencies: [2051, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 7681 (ApplicationPresenceUtils)
import ChannelStore from "ChannelStore" /* 2051 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(bot, channelId) {
let closure_0 = bot;
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 === id.id);
}
return tmp;
};