提交 15dd2fc7 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复 客户端的用户禁言状态与云端不一致的问题

上级 b217d420
...@@ -721,6 +721,10 @@ ...@@ -721,6 +721,10 @@
} }
}, },
setMuteAllMembers(e) { setMuteAllMembers(e) {
for (let user_id in this.conversation.group_member) {
const member = this.conversation.group_member[user_id]
member.mute_type += (e.value ? 1 : -1)
}
this.updateGroupInfo({ this.updateGroupInfo({
"mute_all_members": e.value "mute_all_members": e.value
}) })
......
...@@ -379,6 +379,13 @@ export default class Message { ...@@ -379,6 +379,13 @@ export default class Message {
} }
//更新群资料 //更新群资料
else if (data.action.indexOf("update-group-info-") === 0) { else if (data.action.indexOf("update-group-info-") === 0) {
if(data.action === "update-group-info-mute_all_members" && _currentConversation?.group_info?.mute_all_members != data?.body?.updateData?.mute_all_members){
const {mute_all_members} = data.body.updateData
for (let user_id in _currentConversation.group_member) {
const member = _currentConversation.group_member[user_id]
member.mute_type += (mute_all_members ? 1 : -1)
}
}
_currentConversation.group_info = Object.assign(_currentConversation.group_info,data.body.updateData) _currentConversation.group_info = Object.assign(_currentConversation.group_info,data.body.updateData)
const {notification} = data.body.updateData const {notification} = data.body.updateData
if(data.action === "update-group-info-notification"){ if(data.action === "update-group-info-notification"){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册