2026-10-07 22:43:51 +00:00
|
|
|
// Module ID: 7903
|
|
|
|
|
// Function ID: 7904
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ApplicationPresenceUtils
|
2026-10-02 13:37:24 +00:00
|
|
|
// Dependencies: [2051, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-10-07 22:43:51 +00:00
|
|
|
// Module 7903 (ApplicationPresenceUtils)
|
2026-10-02 13:37:24 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2051 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(bot, channelId) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0 = bot;
|
2026-09-18 19:45:33 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
|
|
|
let tmp = null != channel && bot.bot && channel.isPrivate();
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const rawRecipients = channel.rawRecipients;
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp = null == rawRecipients.find((id) => id.id === id.id);
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|