Browse Source

修复群员加入错群信息

baichun 5 years ago
parent
commit
8c10d7226f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      _src/store/module/group/actions.js

+ 2 - 0
_src/store/module/group/actions.js

@@ -605,6 +605,7 @@ const actions = {
         }
 
         if (data.type === 'leave') {
+          if (data.group_id != state.groupId) return
           if (data.user_info.user_id == rootState.userId) return
 
           data.joinMsg = (data.user_info.nick_name || data.user_info.name) + '退出群组'
@@ -622,6 +623,7 @@ const actions = {
         }
 
         if (data.type === 'join') {
+          if (data.group_id != state.groupId) return
           if (data.user_info.user_id == rootState.userId) return
 
           data.joinMsg = (data.user_info.nick_name || data.user_info.name) + '加入群组'