Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 12133; source: modules/lobbies/LobbyUtils.tsx; dependencies: [3784, 661, 566, 2] */
|
||||
function _fun93161(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:6, offset: 0x020a93f8, size: 153 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const closure = canUnlinkLobbyChannel;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/lobbies/LobbyUtils.tsx');
|
||||
exports.canUnlinkLobbyChannel = closure;
|
||||
exports.useCanUnlinkLobbyChannel = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([PermissionStore], _fun93164);
|
||||
};
|
||||
}
|
||||
|
||||
function canUnlinkLobbyChannel(a0) { // fn#93162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:128, offset: 0x020a9491, size: 127 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
let value = a1;
|
||||
const r4 = value !== undefined ? value : PermissionStore;
|
||||
value = a0 != null;
|
||||
if (value) {
|
||||
r1 = a0.linkedLobby != null && r4.can(Permissions.MANAGE_CHANNELS, a0);
|
||||
r1 = r1 && r4.can(Permissions.VIEW_CHANNEL, a0);
|
||||
r1 = r1 && r4.can(Permissions.SEND_MESSAGES, a0);
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useCanUnlinkLobbyChannel(a0) { // fn#93163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:420, offset: 0x020a9510, size: 66 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun93164);
|
||||
}
|
||||
|
||||
function _fun93164() { // fn#93164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:496, offset: 0x020a9552, size: 28 bytes, params: 1, frame: 13
|
||||
return canUnlinkLobbyChannel(env0_0, PermissionStore);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user