27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
/* Metro module 8112; source: utils/native/openChannelCallModalForChannelId.tsx; dependencies: [1379, 8113, 7709, 2] */
|
|
function _fun65001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8297:6, offset: 0x01bbcb5e, size: 112 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/openChannelCallModalForChannelId.tsx');
|
|
exports.default = function(a0, a1) {
|
|
var r1;
|
|
var value = a1;
|
|
var value3 = ChannelStore.getChannel(a0);
|
|
if (value3 != null) {
|
|
r1 = value && value3.isGuildStageVoice();
|
|
if (r1) {
|
|
value = require(dependencyMap[1]);
|
|
value = value.connectToStage(value3);
|
|
value = value === false;
|
|
r1 = value;
|
|
}
|
|
if (!r1) {
|
|
require(dependencyMap[2]).openChannelCallModal(value3);
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|