Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/* Metro module 11319; source: modules/opt_in_channels/useShowChannelOptInNotice.tsx; dependencies: [4864, 661, 1386, 5102, 566, 5103, 2] */
|
||||
function _fun86342(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:6, offset: 0x01f91e9d, size: 158 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).NULL_STRING_GUILD_ID;
|
||||
const env0_4 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/opt_in_channels/useShowChannelOptInNotice.tsx');
|
||||
exports.default = useShowChannelOptInNotice;
|
||||
}
|
||||
|
||||
function useShowChannelOptInNotice(a0) { // fn#86343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:257, offset: 0x01f91f3b, size: 238 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const isOptInEnabledModule = require(5102) /* metro dependency 5102: isOptInEnabled */;
|
||||
const useOptInEnabledForGuild = isOptInEnabledModule.useOptInEnabledForGuild;
|
||||
let r0 = a0 == null ? value2 : a0.getGuildId();
|
||||
r0 = r0 != null ? a0.guild_id : NULL_STRING_GUILD_ID;
|
||||
const value4 = Reflect.apply(useOptInEnabledForGuild, isOptInEnabledModule, [r0]);
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
|
||||
_fun86344);
|
||||
const value6 = (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome((a0 == null ? value2 : a0.guild_id) ?? NULL_STRING_GUILD_ID);
|
||||
if (a0 == null) {
|
||||
return false;
|
||||
}
|
||||
return value4 && !(value6 && a0.hasFlag(ChannelFlags.IS_GUILD_RESOURCE_CHANNEL)) && !value5 && !a0.isThread();
|
||||
}
|
||||
|
||||
function _fun86344() { // fn#86344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:421, offset: 0x01f92029, size: 40 bytes, params: 1, frame: 12
|
||||
return env0_0 != null && UserGuildSettingsStore.isChannelRecordOrParentOptedIn(env0_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user