From 05797097c66b867c216c93f5e7ad9fe3ecebf0eb Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 18 Jun 2026 09:16:32 +0200 Subject: [PATCH] Only consider a call accepted if the *intended* recipient picks up --- src/state/CallViewModel/CallNotificationLifecycle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/CallViewModel/CallNotificationLifecycle.ts b/src/state/CallViewModel/CallNotificationLifecycle.ts index 9eb4c0ef0..2100bde3e 100644 --- a/src/state/CallViewModel/CallNotificationLifecycle.ts +++ b/src/state/CallViewModel/CallNotificationLifecycle.ts @@ -140,9 +140,9 @@ export function createCallNotificationLifecycle$({ const timeout$ = timer(notificationEvent.lifetime).pipe( map(() => "timeout" as const), ); - // Call is accepted when someone else joins + // Call is accepted when the recipient joins const accept$ = memberships$.pipe( - filter((ms) => ms.value.some((m) => m.userId !== localUser.userId)), + filter((ms) => ms.value.some((m) => m.userId === recipient)), map(() => "accept" as const), ); // Call is declined when we receive a decline event