Commit 3e2c1309 by Sixong.Zhu

u

parent 9861a612
Showing with 8 additions and 3 deletions
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
QuestionAnswerMessage, QuestionAnswerMessage,
ActionMessage, ActionMessage,
PayMessage, PayMessage,
NotifyMessage NotifyMessage,
}, },
}) })
export default class Message extends Vue { export default class Message extends Vue {
...@@ -326,8 +326,13 @@ ...@@ -326,8 +326,13 @@
return true; return true;
} }
const senderEid = this.messageBody.eid; const senderEid = +this.messageBody.eid;
return senderEid!.toString() === this.chatMyId!.toString(); const m1 = senderEid === +this.chatMyId;
if (m1 && this.chatMembers) {
const m2 = _.find(this.chatMembers, (i) => +i.eid === senderEid);
return m2 && +m2.oid === +this.messageBody.oid;
}
return false;
} }
private get userName() { private get userName() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment