Hotfix for hangup disconnect screen (#1921)
- we cannot disconnect livekit before ending the rtcsession. Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -71,8 +71,8 @@ export async function leaveRTCSession(
|
|||||||
rtcSession: MatrixRTCSession,
|
rtcSession: MatrixRTCSession,
|
||||||
livekitRoom: Room | undefined,
|
livekitRoom: Room | undefined,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
await livekitRoom?.disconnect();
|
|
||||||
await rtcSession.leaveRoomSession();
|
await rtcSession.leaveRoomSession();
|
||||||
|
await livekitRoom?.disconnect();
|
||||||
if (widget) {
|
if (widget) {
|
||||||
await widgetPostHangupProcedure(widget);
|
await widgetPostHangupProcedure(widget);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user