2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 10131
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 78441
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: canUnlinkLobbyChannel
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [3759, 653, 566, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useCanUnlinkLobbyChannel
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 10131 (canUnlinkLobbyChannel)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import { Permissions } from "ME";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
function canUnlinkLobbyChannel(channel, closure_0) {
|
|
|
|
|
let obj = closure_0;
|
|
|
|
|
if (closure_0 === undefined) {
|
|
|
|
|
obj = _isNativeReflectConstruct;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let tmp = null != channel;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
let canResult = null != channel.linkedLobby;
|
|
|
|
|
if (canResult) {
|
|
|
|
|
canResult = obj.can(Permissions.MANAGE_CHANNELS, channel);
|
|
|
|
|
}
|
|
|
|
|
if (canResult) {
|
|
|
|
|
canResult = obj.can(Permissions.VIEW_CHANNEL, channel);
|
|
|
|
|
}
|
|
|
|
|
if (canResult) {
|
|
|
|
|
canResult = obj.can(Permissions.SEND_MESSAGES, channel);
|
|
|
|
|
}
|
|
|
|
|
tmp = canResult;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("initialize").fileFinishedImporting("modules/lobbies/LobbyUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export { canUnlinkLobbyChannel };
|
|
|
|
|
export const useCanUnlinkLobbyChannel = function useCanUnlinkLobbyChannel(channel) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = channel;
|
|
|
|
|
const items = [_isNativeReflectConstruct];
|
|
|
|
|
return _require(566).useStateFromStores(items, () => outer1_4(closure_0, outer1_2));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|