2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 7677
|
|
|
|
|
// Function ID: 7678
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ApplicationPresenceUtils
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [2045, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 7677 (ApplicationPresenceUtils)
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
};
|