decord/alpha/source/modules/applications/ApplicationPresenceUtils.tsx
2026-10-12 06:59:38 +00:00

22 lines
776 B
TypeScript

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