decord/source/modules/applications/ApplicationPresenceUtils.tsx

21 lines
790 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 8494
// Function ID: 67813
2026-07-20 16:05:17 +00:00
// Name: shouldDisableUserPresenceInChannel
// Dependencies: []
// Exports: shouldDisableUserPresenceInChannel
2026-07-21 06:55:02 +00:00
// Module 8494 (shouldDisableUserPresenceInChannel)
2026-07-20 16:05:17 +00:00
let closure_0 = importDefault(dependencyMap[0]);
const result = arg1(dependencyMap[1]).fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(stateFromStores, channelId) {
let channel = stateFromStores;
channel = channel.getChannel(channelId);
let tmp = null != channel && stateFromStores.bot && channel.isPrivate();
if (tmp) {
const rawRecipients = channel.rawRecipients;
tmp = null == rawRecipients.find((id) => id.id === id.id);
}
return tmp;
};