Commit 5dd2612b by Sixong.Zhu

u

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