From 2d96a2bfb105894f0631b8f970511039bbc94f33 Mon Sep 17 00:00:00 2001 From: Timo K Date: Fri, 12 Sep 2025 12:13:54 +0200 Subject: [PATCH] Skip event id check to make declines compatible with EX Signed-off-by: Timo K --- src/toasts/IncomingCallToast.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/toasts/IncomingCallToast.tsx b/src/toasts/IncomingCallToast.tsx index 4bad61b9f7..903c0a2f52 100644 --- a/src/toasts/IncomingCallToast.tsx +++ b/src/toasts/IncomingCallToast.tsx @@ -171,13 +171,15 @@ export function IncomingCallToast({ notificationEvent }: Props): JSX.Element { if ( ev.getType() === EventType.RTCDecline && userId !== undefined && - ev.getSender() === userId && // It is our decline not someone elses - ev.relationEventId === notificationEvent.getId() // The event declines this ringing toast. + ev.getSender() === userId //&& // It is our decline not someone elses + // TODO: We don't do this check for now since EX will send a different event relation so this check would not + // react to EX declines. + // ev.relationEventId === notificationEvent.getId() // The event declines this ringing toast. ) { dismissToast(); } }, - [dismissToast, notificationEvent, room?.client], + [dismissToast, room?.client], ); // Dismiss if another device from this user joins.