Commit 5dd2612b by Sixong.Zhu

u

parent c1a6b2c8
Showing with 10 additions and 5 deletions
......@@ -326,11 +326,16 @@
return true;
}
const senderEid = +this.messageBody.eid;
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;
if (this.messageBody) {
const senderEid = +(this.messageBody.eid as string);
const m1 = senderEid === +(this.chatMyId as number);
if (m1 && this.chatMembers) {
const m2 = _.find(
this.chatMembers,
(i) => +i.eid === senderEid
);
return m2 && +m2.oid === +(this.messageBody.oid as string);
}
}
return false;
}
......
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