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

23 lines
776 B
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 7903
// Function ID: 7904
// Name: ApplicationPresenceUtils
2026-10-02 13:37:24 +00:00
// Dependencies: [2051, 2]
// 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 */;
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;
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);
}
return tmp;
};