2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 8532
|
|
|
|
|
// Function ID: 8533
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ApplicationPresenceUtils
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [2041, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 8532 (ApplicationPresenceUtils)
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2041 */;
|
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;
|
|
|
|
|
};
|