Browse Source

退出断开IM

wolyshaw 3 years ago
parent
commit
5321b22471
1 changed files with 2 additions and 0 deletions
  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'
   }
 }