decord/source/actions/GamesActionCreators.native.tsx

89 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10894
// Function ID: 84579
2026-07-20 16:05:17 +00:00
// Name: fetchJoinSecret
2026-07-25 08:10:48 +00:00
// Dependencies: [5, 653, 4156, 668, 5973, 3828, 686, 507, 10442, 5665, 10543, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 10894 (fetchJoinSecret)
import module_3828 from "module_3828";
2026-07-23 10:11:24 +00:00
import ME from "ME";
import { ActivityIntent } from "items3";
let closure_4;
let closure_5;
let closure_6;
let closure_7;
const require = arg1;
2026-07-20 16:05:17 +00:00
function fetchJoinSecret(application) {
let channelId;
let messageId;
let remotePartyId;
let sessionId;
let userId;
2026-07-23 10:11:24 +00:00
const _require = arg1;
2026-07-20 16:05:17 +00:00
({ channelId, messageId } = application);
const id = application.application.id;
let tmp = null != channelId;
({ userId, sessionId, remotePartyId } = application);
if (tmp) {
tmp = null != messageId;
}
let tmp2;
if (tmp) {
let obj = { channel_id: channelId, message_id: messageId, headless: true };
tmp2 = obj;
}
2026-07-23 10:11:24 +00:00
id(686).dispatch({ type: "ACTIVITY_JOIN_LOADING", applicationId: id, remotePartyId });
const HTTP = _require(507).HTTP;
obj = { url: closure_4.USER_ACTIVITY_JOIN(userId, sessionId, id), retries: 3, query: tmp2, oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
const value = HTTP.get(obj);
2026-07-23 10:11:24 +00:00
return value.then((arg0) => callback(arg0), () => {
let obj = id(outer1_2[6]);
2026-07-20 16:05:17 +00:00
obj = { type: "ACTIVITY_JOIN_FAILED", applicationId: id };
obj.dispatch(obj);
return false;
});
}
function joinWithSecret(str) {
const combined = "" + str.replace(/\/+$/, "") + constants.GAME_INVITE_FRAGMENT + arg1;
2026-07-25 08:10:48 +00:00
importDefault(3828).openURL(combined, constants2.SAFARI);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
({ Endpoints: closure_4, DiscordConnectDeeplinks: closure_5, WebBrowserType: closure_6, ActivityFlags: closure_7 } = ME);
const result = require("items3").fileFinishedImporting("actions/GamesActionCreators.native.tsx");
export default {
2026-07-20 16:05:17 +00:00
addGame() {
},
toggleOverlay() {
},
editName() {
},
identifyGame() {
const error = new Error("not supported");
return Promise.reject(error);
},
getDetectableGames() {
},
reportUnverifiedGame() {
},
uploadIcon() {
},
deleteEntry() {
},
launch() {
return Promise.resolve();
},
join(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
// CreateGeneratorClosureLongIndex (0x67)
return callback(tmp)();
},
joinWithSecret
};