|
@@ -470,14 +470,14 @@ export const useWebSocketStore = defineStore("webSocketStore", {
|
|
|
messageList[sessionId] = [];
|
|
|
}
|
|
|
messageList[sessionId] = messageList[sessionId].map(item => {
|
|
|
- if (!item.id && item.msgId + '' === msg?.msgId + '') return {...item, id: msg.id, msgId: undefined};
|
|
|
+ if (!item.id && item.msgId + '' === msg?.msgId + '') return {...item, id: msg.id, msgId: undefined, err: !msg.id?true:undefined};
|
|
|
if (item.id + '' === msg?.msgId + '') return {...item, content: "", url: ""};
|
|
|
return item;
|
|
|
});
|
|
|
// 检测当前消息
|
|
|
if (this.toUserInfo.uuid === sessionId) {
|
|
|
this.messages = this.messages.map(item => {
|
|
|
- if (!item.id && item.msgId + '' === msg?.msgId + '') return {...item, id: msg.id, msgId: undefined};
|
|
|
+ if (!item.id && item.msgId + '' === msg?.msgId + '') return {...item, id: msg.id, msgId: undefined, err: !msg.id?true:undefined};
|
|
|
if (item.id + '' === msg?.msgId + '') return {...item, content: "", url: ""};
|
|
|
return item;
|
|
|
});
|
|
@@ -863,10 +863,9 @@ export const useWebSocketStore = defineStore("webSocketStore", {
|
|
|
this.chatGroupAuth[item] = 1;
|
|
|
return;
|
|
|
}
|
|
|
- if(item.uuid && item.messageType == MsgType.MESSAGE_TYPE_GROUP){
|
|
|
- this.chatGroupAuth[item.uuid] = 1
|
|
|
- }
|
|
|
- })
|
|
|
+ this.chatGroupAuth[item.uuid] = 1
|
|
|
+ });
|
|
|
+ console.log(this.chatGroupAuth)
|
|
|
},
|
|
|
// 校验会话权限
|
|
|
verifyChatAuth(uuid){
|