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

21 lines
737 B
TypeScript

// Module ID: 8461
// Function ID: 8462
// Name: ApplicationPresenceUtils
// Dependencies: [1958, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 8461 (ApplicationPresenceUtils)
import ChannelStore from "ChannelStore" /* 1958 */;
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;
};