From b17a76ac1af9ffb475968ef7b7d0933c4dc51a01 Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:08:39 +0100 Subject: [PATCH] Hotfix for hangup disconnect screen (#1921) - we cannot disconnect livekit before ending the rtcsession. Signed-off-by: Timo K --- src/rtcSessionHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtcSessionHelpers.ts b/src/rtcSessionHelpers.ts index 3f7d84928..0849c0693 100644 --- a/src/rtcSessionHelpers.ts +++ b/src/rtcSessionHelpers.ts @@ -71,8 +71,8 @@ export async function leaveRTCSession( rtcSession: MatrixRTCSession, livekitRoom: Room | undefined, ): Promise { - await livekitRoom?.disconnect(); await rtcSession.leaveRoomSession(); + await livekitRoom?.disconnect(); if (widget) { await widgetPostHangupProcedure(widget); }