decord/source/8490_shouldDisableUserPresenceInChannel.js

21 lines
790 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 8490
// Function ID: 67801
// Name: shouldDisableUserPresenceInChannel
// Dependencies: []
// Exports: shouldDisableUserPresenceInChannel
// Module 8490 (shouldDisableUserPresenceInChannel)
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;
};