chatmessage improvements
This commit is contained in:
parent
37b2137ab9
commit
7069894c53
4 changed files with 28 additions and 8 deletions
|
|
@ -106,6 +106,20 @@ const ChatMessage = {
|
|||
messageChainId: this.chatItem.messageChainId,
|
||||
})
|
||||
},
|
||||
visibilityIcon(visibility) {
|
||||
switch (visibility) {
|
||||
case 'private':
|
||||
return 'lock'
|
||||
case 'unlisted':
|
||||
return 'lock-open'
|
||||
case 'direct':
|
||||
return 'envelope'
|
||||
case 'local':
|
||||
return 'igloo'
|
||||
default:
|
||||
return 'globe'
|
||||
}
|
||||
},
|
||||
async deleteMessage() {
|
||||
const confirmed = window.confirm(this.$t('chats.delete_confirm'))
|
||||
if (confirmed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue