chore: Disable delete option for deleted messages (#2600)
* disable delete option for deleted message * review fixes
This commit is contained in:
parent
efd6f735dc
commit
4a2195aeda
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue