Browse Source

fix:修复自动关麦

jinx 3 years ago
parent
commit
295f3c8e23
1 changed files with 3 additions and 1 deletions
  1. 3 1
      socket.js

+ 3 - 1
socket.js

@@ -314,7 +314,9 @@ export default {
       let noMute = getApp().globalData.voiceProps.noMute
       getApp().globalData.voiceProps.force = enableTalk
       if (!enableTalk && !noMute) {
-        this.mic()
+        if (this.role !== 'leader') {
+          this.mic()
+        }
       }
     })