|
|
@ -480,7 +480,7 @@ export default { |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.$store.commit("deleteMessage", msgInfo); |
|
|
this.$store.commit("deleteMessage", [msgInfo, this.chat]); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
recallMessage(msgInfo) { |
|
|
recallMessage(msgInfo) { |
|
|
@ -567,13 +567,15 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
showName(msgInfo) { |
|
|
showName(msgInfo) { |
|
|
if (this.chat.type == 'GROUP') { |
|
|
if (!msgInfo) { |
|
|
|
|
|
return "" |
|
|
|
|
|
} |
|
|
|
|
|
if (this.isGroup) { |
|
|
let member = this.groupMembers.find((m) => m.userId == msgInfo.sendId); |
|
|
let member = this.groupMembers.find((m) => m.userId == msgInfo.sendId); |
|
|
return member ? member.showNickName : ""; |
|
|
return member ? member.showNickName : msgInfo.sendNickName || ""; |
|
|
} else { |
|
|
} else { |
|
|
return msgInfo.sendId == this.mine.id ? this.mine.nickName : this.chat.showName |
|
|
return msgInfo.selfSend ? this.mine.nickName : this.chat.showName |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
headImage(msgInfo) { |
|
|
headImage(msgInfo) { |
|
|
if (this.chat.type == 'GROUP') { |
|
|
if (this.chat.type == 'GROUP') { |
|
|
|