ソースを参照

退出断开IM

wolyshaw 3 年 前
コミット
5321b22471
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/components/live-broadcast/runtime.ts

+ 2 - 0
src/components/live-broadcast/runtime.ts

@@ -564,5 +564,7 @@ export const leaveIMRoom = async () => {
     // @ts-ignore
     await runtime.rtcClient?.leaveRoom(runtime.joinedRoom)
     runtime.joinedRoom = null
+    RongIMLib.disconnect()
+    runtime.imConnectStatus = 'disconnect'
   }
 }