Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
27 lines
920 B
TypeScript
27 lines
920 B
TypeScript
// Module ID: 18052
|
|
// Function ID: 18053
|
|
// Name: GenerateInvite
|
|
// Dependencies: [17, 18044, 8496, 7861, 2]
|
|
|
|
// Module 18052 (GenerateInvite)
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import InstantInviteActionCreatorsDefault from "InstantInviteActionCreators" /* 8496 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const NativeModules = _mod17.NativeModules;
|
|
const result = size.fileFinishedImporting("modules/headless_tasks/android/GenerateInvite.tsx");
|
|
|
|
export default (channelId) => {
|
|
channelId = channelId.channelId;
|
|
return new Promise((arg0) => {
|
|
closure_0 = arg0;
|
|
channelId(18044).awaitStorage(() => {
|
|
const invite = InstantInviteActionCreatorsDefault.createInvite(channelId, {}, "Mobile Voice Overlay");
|
|
invite.then((code) => {
|
|
RNCClipboard = RNCClipboard.RNCClipboard;
|
|
RNCClipboard.setString(channelId(7861)(code.code));
|
|
closure_1_0(true);
|
|
});
|
|
});
|
|
});
|
|
};
|