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

23 lines
776 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 8341
// Function ID: 8342
// Name: ApplicationPresenceUtils
2026-10-09 10:00:15 +00:00
// Dependencies: [2064, 2]
2026-07-20 16:05:17 +00:00
// Exports: shouldDisableUserPresenceInChannel
2026-10-09 10:00:15 +00:00
// Module 8341 (ApplicationPresenceUtils)
import ChannelStore from "ChannelStore" /* 2064 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
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-10-03 08:58:59 +00:00
let closure_0 = bot;
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-10-03 08:58:59 +00:00
tmp = null == rawRecipients.find((id) => id.id === id.id);
2026-07-20 16:05:17 +00:00
}
return tmp;
};