decord/source/actions/native/DisplayedInviteActionCreators.tsx

27 lines
933 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 9222
// Function ID: 9223
2026-07-20 16:05:17 +00:00
// Name: showInvite
2026-08-05 07:35:12 +00:00
// Dependencies: [8964, 709, 7651, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearDisplayedInvite, showInvite
2026-08-05 07:35:12 +00:00
// Module 9222 (showInvite)
2026-07-23 10:11:24 +00:00
const result = require("generateAcceptInviteOptions").fileFinishedImporting("actions/native/DisplayedInviteActionCreators.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const showInvite = function showInvite(code, username, arg2) {
2026-07-20 16:05:17 +00:00
let _location;
let deeplinkAttemptId;
let obj = arg2;
2026-07-29 08:29:29 +00:00
if (arg2 == null) {
2026-07-20 16:05:17 +00:00
obj = {};
}
2026-08-04 08:36:32 +00:00
({ deeplinkAttemptId, location: _location } = obj);
2026-08-05 07:35:12 +00:00
require(8964) /* getDisplayedInviteCode */;
2026-08-04 08:36:32 +00:00
obj = { type: "DISPLAYED_INVITE_SHOW", code, username, deeplinkAttemptId };
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch(obj);
const obj2 = importDefault(709);
2026-08-05 07:35:12 +00:00
const invite = importDefault(7651).resolveInvite(code, _location);
2026-07-20 16:05:17 +00:00
};
export const clearDisplayedInvite = function clearDisplayedInvite() {
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "DISPLAYED_INVITE_CLEAR" });
2026-07-20 16:05:17 +00:00
};