decord/stable/source/modules/applications/ApplicationPresenceUtils.tsx

23 lines
776 B
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 7681
// Function ID: 7682
// Name: ApplicationPresenceUtils
2026-10-06 22:12:49 +00:00
// Dependencies: [2051, 2]
// Exports: shouldDisableUserPresenceInChannel
2026-10-06 22:12:49 +00:00
// 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) {
2026-10-06 22:12:49 +00:00
let closure_0 = bot;
const channel = ChannelStore.getChannel(channelId);
let tmp = null != channel && bot.bot && channel.isPrivate();
if (tmp) {
const rawRecipients = channel.rawRecipients;
2026-10-06 22:12:49 +00:00
tmp = null == rawRecipients.find((id) => id.id === id.id);
}
return tmp;
};