decord/source/modules/applications/ApplicationPresenceUtils.tsx
2026-07-24 07:16:23 +00:00

21 lines
821 B
TypeScript

// Module ID: 8546
// Function ID: 68103
// Name: shouldDisableUserPresenceInChannel
// Dependencies: [1348, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 8546 (shouldDisableUserPresenceInChannel)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const result = require("set").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 === stateFromStores.id);
}
return tmp;
};