decord/source/modules/applications/ApplicationPresenceUtils.tsx
2026-07-25 08:10:48 +00:00

21 lines
821 B
TypeScript

// Module ID: 8306
// Function ID: 66757
// Name: shouldDisableUserPresenceInChannel
// Dependencies: [1348, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 8306 (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;
};