Commit 73409298 by Sixong.Zhu

Merge branch 'master' into pre

parents 051df315 5a2b2252
Showing with 12 additions and 0 deletions
......@@ -219,6 +219,9 @@
@chatStore.State(ChatStore.STATE_CHAT_CURRENT_USER_UID)
private readonly chatMyId!: ChatStore.STATE_CHAT_CURRENT_USER_UID;
@chatStore.Getter(ChatStore.STATE_CURRENT_CHAT_MEMBERS)
private readonly allChatMembers!: ChatStore.STATE_CURRENT_CHAT_MEMBERS;
@chatStore.Getter(ChatStore.GETTER_CURRENT_CHAT_PRESENT_MEMBERS)
private readonly chatMembers!: ChatStore.GETTER_CURRENT_CHAT_PRESENT_MEMBERS;
......@@ -341,6 +344,15 @@
return true;
}
if (this.backend && this.messageBody.eid) {
const t = this.allChatMembers.find(
(i) => +i.eid === +this.messageBody.eid
);
if (t && t.type !== ChatRole.Default) {
return true;
}
}
if (this.messageBody.eid && this.chatMyId) {
const o = +this.messageBody.eid;
const m1 = o === +this.chatMyId;
......
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