2026-09-01 10:26:29 +00:00
|
|
|
// Module ID: 17520
|
|
|
|
|
// Function ID: 17521
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: promise
|
2026-09-01 10:26:29 +00:00
|
|
|
// Dependencies: [17, 17512, 8649, 7503, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-01 10:26:29 +00:00
|
|
|
// Module 17520 (promise)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const NativeModules = get_ActivityIndicator.NativeModules;
|
|
|
|
|
const result = set.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;
|
|
|
|
|
channelId(closure_1_1[1]).awaitStorage(() => {
|
|
|
|
|
const invite = channelId(closure_2_1[2]).createInvite(closure_0, {}, "Mobile Voice Overlay");
|
2026-07-20 16:05:17 +00:00
|
|
|
invite.then((code) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
const RNCClipboard = closure_2_2.RNCClipboard;
|
|
|
|
|
RNCClipboard.setString(callback(closure_2_1[3])(code.code));
|
2026-07-29 08:29:29 +00:00
|
|
|
callback(true);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
};
|