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,35 @@
// Metro module 13579 (f13580).
import { RPC_LOCAL_SCOPE, RPC_SCOPE_CONFIG } from "../../Constants";
import { RPCEvents } from "../../../../Constants";
import { OAuth2Scopes } from "../../../../_bundle/Module8174";
import Module12 from "../../../../_bundle/Module12";
export default function createVoiceSettingsEventHandlers(c20545_0, c20545_1) {
const r14 = {};
const VOICE_SETTINGS_UPDATE = RPCEvents.VOICE_SETTINGS_UPDATE;
const scope = {};
scope[RPC_SCOPE_CONFIG.ANY] = [OAuth2Scopes.RPC, OAuth2Scopes.RPC_VOICE_READ];
r14[VOICE_SETTINGS_UPDATE] = {
scope,
handler: () => ({ prevState, dispatch: dispatch2 }) => {
const r8 = c20545_0();
if (!Module12.isEqual(r8, prevState)) {
dispatch2(r8);
}
return r8;
}
};
r14[RPCEvents.VOICE_SETTINGS_UPDATE_2] = {
scope: RPC_LOCAL_SCOPE,
handler: ({ socket }) => ({ prevState, dispatch: dispatch2 }) => {
if (socket.application.id == null) {
return prevState;
}
const r14 = c20545_1(socket.application.id);
if (!Module12.isEqual(r14, prevState)) {
dispatch2(r14);
}
return r14;
}
};
return r14;
};