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

Update uni-im-msg.vue

上级 ca7af78e
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
{{ friendlyTime }} {{ friendlyTime }}
</text> </text>
</view> </view>
msg.revoke_ing:{{msg.revoke_ing}}
<view class="msg-box"> <view class="msg-box">
<view v-if="msg.is_revoke" class="revoke-text-box"> <view v-if="msg.is_revoke" class="revoke-text-box">
<text class="revoke-text"> <text class="revoke-text">
...@@ -222,11 +221,8 @@ ...@@ -222,11 +221,8 @@
} }
}, },
isFromAdmin() { isFromAdmin() {
const { const conversation = uniIm.conversation.getCached(this.msg.conversation_id)
group_id, return conversation.group_id && conversation.group_member[this.msg.from_uid]?.role?.includes('admin')
from_uid
} = this.msg
return group_id && this.currentConversation.group_member[from_uid]?.role?.includes('admin')
}, },
mineId() { mineId() {
return uniCloud.getCurrentUserInfo().uid return uniCloud.getCurrentUserInfo().uid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册