chore: Disable delete option for deleted messages (#2600)

* disable delete option for deleted message

* review fixes
This commit is contained in:
Muhsin Keloth 2021-07-09 12:34:09 +05:30 committed by GitHub
parent efd6f735dc
commit 4a2195aeda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,6 @@
/>
</div>
<spinner v-if="isPending" size="tiny" />
<a
v-if="isATweet && isIncoming && sender"
class="sender--info"
@ -63,7 +62,7 @@
</a>
</div>
<context-menu
v-if="isBubble"
v-if="isBubble && !isMessageDeleted"
:is-open="showContextMenu"
:show-copy="hasText"
:menu-position="contextMenuPosition"
@ -207,6 +206,9 @@ export default {
hasText() {
return !!this.data.content;
},
isMessageDeleted() {
return this.contentAttributes.deleted;
},
sentByMessage() {
const { sender } = this;
return this.data.message_type === 1 && !isEmptyObject(sender)