feat: add federatedCallId and callOrigin to client call routing
Enable federated DM calls to route accept/reject/end through the correct WebSocket connection using callOrigin, and include federatedCallId in all dm_call payloads for server-side FederatedCallEntry lookup.
This commit is contained in:
@@ -102,7 +102,9 @@ export function MainContent() {
|
||||
const handleCancelCall = () => {
|
||||
if (!currentChannelId) return;
|
||||
useVoiceStore.getState().setOutgoingCall(null);
|
||||
wsSend({ type: 'dm_call_end', dmChannelId: currentChannelId }, getChannelOrigin(currentChannelId));
|
||||
const { federatedCallId, callOrigin } = useVoiceStore.getState();
|
||||
const origin = callOrigin || getChannelOrigin(currentChannelId);
|
||||
wsSend({ type: 'dm_call_end', dmChannelId: currentChannelId, federatedCallId }, origin);
|
||||
};
|
||||
|
||||
if (isInDmCall) {
|
||||
|
||||
Reference in New Issue
Block a user