decord/source/modules/headless_tasks/android/GenerateInvite.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

27 lines
920 B
TypeScript

// Module ID: 18053
// Function ID: 18054
// Name: GenerateInvite
// Dependencies: [17, 18045, 8496, 7861, 2]
// Module 18053 (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(18045).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);
});
});
});
};