Files
discord-decomp/sources/actions/native/CreateGuildActionCreators.tsx
2026-07-28 01:06:53 +03:00

46 lines
2.8 KiB
TypeScript

/* Metro module 12041; source: actions/native/CreateGuildActionCreators.tsx; dependencies: [1935, 661, 9151, 2] */
import GuildChannelStore from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as InstantInviteUtilsModule from '../../modules/instant_invite/native/InstantInviteUtils.tsx'; /* Metro dependency 9151 */
function _fun92529(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:6, offset: 0x0208e240, size: 136 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('actions/native/CreateGuildActionCreators.tsx');
exports.showInstantInviteModal = function(a0) {
var env0_0 = a0;
GuildChannelStore.addConditionalChangeListener(_fun92531);
};
function showInstantInviteModal(a0) { // fn#92530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:240, offset: 0x0208e2c8, size: 38 bytes, params: 2, frame: 11
const env0_0 = a0;
GuildChannelStore.addConditionalChangeListener(_fun92531);
function _fun92531() { // fn#92531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:307, offset: 0x0208e2ee, size: 66 bytes, params: 1, frame: 12
var environment;
var r0;
let value = environment.__proto__;
value = GuildChannelStore.getDefaultChannel(env0_0);
value = value == null;
if (value) {
r0 = value;
} else {
global.setImmediate(_fun92532);
r0 = false;
}
return r0;
function _fun92532() { // fn#92532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:372, offset: 0x0208e330, size: 62 bytes, params: 1, frame: 15
const showInstantInviteActionSheet = InstantInviteUtilsModule.showInstantInviteActionSheet;
const binding = env0_0;
const GUILD_CREATE = InstantInviteSources.GUILD_CREATE;
Reflect.apply(showInstantInviteActionSheet, InstantInviteUtilsModule, [binding, {source: GUILD_CREATE}]);
}
}
}
}
global.__d(_fun92529, 12041, [1935, 661, 9151, 2]) /* metro module 12041, dependencies: [1935, 661, 9151, 2] */;