提交 778a3729 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update uni-im-msg.vue

上级 ca7af78e
......@@ -7,7 +7,6 @@
{{ friendlyTime }}
</text>
</view>
msg.revoke_ing:{{msg.revoke_ing}}
<view class="msg-box">
<view v-if="msg.is_revoke" class="revoke-text-box">
<text class="revoke-text">
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册