2026-09-11 19:12:58 +00:00
|
|
|
// Module ID: 18022
|
|
|
|
|
// Function ID: 18023
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: GenerateInvite
|
2026-09-11 19:12:58 +00:00
|
|
|
// Dependencies: [17, 18014, 8464, 7831, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-11 19:12:58 +00:00
|
|
|
// Module 18022 (GenerateInvite)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod17 from "module_17" /* 17 */;
|
2026-09-11 19:12:58 +00:00
|
|
|
import InstantInviteActionCreatorsDefault from "InstantInviteActionCreators" /* 8464 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const NativeModules = _mod17.NativeModules;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/headless_tasks/android/GenerateInvite.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default (channelId) => {
|
2026-07-23 10:11:24 +00:00
|
|
|
channelId = channelId.channelId;
|
2026-07-20 16:05:17 +00:00
|
|
|
return new Promise((arg0) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
2026-09-11 19:12:58 +00:00
|
|
|
channelId(18014).awaitStorage(() => {
|
2026-09-10 05:38:07 +00:00
|
|
|
const invite = InstantInviteActionCreatorsDefault.createInvite(channelId, {}, "Mobile Voice Overlay");
|
2026-07-20 16:05:17 +00:00
|
|
|
invite.then((code) => {
|
2026-09-10 05:38:07 +00:00
|
|
|
RNCClipboard = RNCClipboard.RNCClipboard;
|
2026-09-11 19:12:58 +00:00
|
|
|
RNCClipboard.setString(channelId(7831)(code.code));
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_1_0(true);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|