This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,33 @@
// Metro module 10630 (f10631).
import { TransportTypes } from "../../Constants";
import { RPCCloseCodes } from "../../../../Constants";
import { validateOriginAndUpdateSocket, processSocketThrottlers, validateSocketApplication, getDeprecatedVoiceSettingsWithShortcut, getVoiceSettingsWithShortcut } from "../../RPCHelpers";
import RPCError from "../../RPCError";
let env7131 = {};
let c7132_0 = async (c26763_0, c26763_1, c26763_2) => {
let r49;
let c26763_4;
let c30269_0, c30269_1, c30269_2;
L12: {
c26763_4 = void 0;
c30269_0 = c26763_0;
c30269_1 = c26763_1;
c30269_2 = c26763_2;
validateOriginAndUpdateSocket(c26763_0, c26763_1);
if (c26763_2 == null) {
r49 = Promise.reject(new RPCError({
closeCode: RPCCloseCodes.INVALID_CLIENTID
}, "No Client ID Specified"));
break L12;
}
await processSocketThrottlers(c26763_2, c26763_0.transport !== TransportTypes.POST_MESSAGE, c26763_0.abortController.signal);
return validateSocketApplication(c30269_0, c30269_2, c30269_1);
}
return r49;
};
export const validateSocketClient = function() {
const apply = c7132_0.apply;
return c7132_0.apply(this, arguments);
};
export const getDeprecatedVoiceSettings = () => getDeprecatedVoiceSettingsWithShortcut(() => []);
export const getVoiceSettings = (a0) => getVoiceSettingsWithShortcut(a0, () => "");