Commit 5dd2612b by Sixong.Zhu

u

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