@@ -790,7 +790,14 @@ export const useWebSocketStore = defineStore("webSocketStore", {
} : (msg.uuid == val.toUuid ? {
toUsername: msg.name
}:{})
- })
+ });
+ // 个人群昵称
+ if (msg.name) {
+ this.updateSessionNewMessage({ name: msg.name }, msg.uuid);
+ if (this.toUserInfo.uuid === msg.uuid) {
+ this.toUserInfo.nickname = msg.name
+ }
}
},