2026-09-30 07:29:52 +00:00
|
|
|
// Module ID: 7872
|
|
|
|
|
// Function ID: 7873
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ApplicationPresenceUtils
|
2026-09-26 08:31:33 +00:00
|
|
|
// Dependencies: [2045, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-09-30 07:29:52 +00:00
|
|
|
// Module 7872 (ApplicationPresenceUtils)
|
2026-09-26 08:31:33 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(bot, channelId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp = null != channel && bot.bot && channel.isPrivate();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp) {
|
|
|
|
|
const rawRecipients = channel.rawRecipients;
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp = null == rawRecipients.find((id) => id.id === bot.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|