From 778a37292e2c1dd76d8f7cb7f483e39f10c24f52 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Thu, 25 Apr 2024 15:18:49 +0800 Subject: [PATCH] Update uni-im-msg.vue --- components/uni-im-msg/uni-im-msg.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/uni-im-msg/uni-im-msg.vue b/components/uni-im-msg/uni-im-msg.vue index efff25c..f6bef90 100644 --- a/components/uni-im-msg/uni-im-msg.vue +++ b/components/uni-im-msg/uni-im-msg.vue @@ -7,7 +7,6 @@ {{ friendlyTime }} - msg.revoke_ing:{{msg.revoke_ing}} @@ -222,11 +221,8 @@ } }, isFromAdmin() { - const { - group_id, - from_uid - } = this.msg - return group_id && this.currentConversation.group_member[from_uid]?.role?.includes('admin') + const conversation = uniIm.conversation.getCached(this.msg.conversation_id) + return conversation.group_id && conversation.group_member[this.msg.from_uid]?.role?.includes('admin') }, mineId() { return uniCloud.getCurrentUserInfo().uid -- GitLab