From 7724cbf9be4f2a5de93a15f76f63d062c3895f9c Mon Sep 17 00:00:00 2001 From: Timo K Date: Tue, 26 Aug 2025 19:21:27 +0200 Subject: [PATCH] fix tests Signed-off-by: Timo K --- src/state/CallViewModel.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index d292ef5a..96d8740b 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -19,7 +19,7 @@ import { } from "livekit-client"; import { ClientEvent, - EventTimelineSetHandlerMap, + type EventTimelineSetHandlerMap, EventType, RoomEvent, RoomStateEvent, @@ -58,7 +58,7 @@ import { type CallMembership, type MatrixRTCSession, MatrixRTCSessionEvent, - MatrixRTCSessionEventHandlerMap, + type MatrixRTCSessionEventHandlerMap, MembershipManagerEvent, Status, } from "matrix-js-sdk/lib/matrixrtc"; @@ -962,8 +962,8 @@ export class CallViewModel extends ViewModel { ), ); } - // If no lifetime, the notify event is basically invalid and we just stay in unknown state. - return of({ state: "unknown" } as { state: "unknown" }); + // If no lifetime, the notify event is basically invalid and we enter ringEnded immediately. + return of({ state: "ringEnded" } as { state: "ringEnded" }); }), startWith({ state: "unknown" } as { state: "unknown" }), );