feat: Add Instagram Channel (#2955)

This commit is contained in:
Tejaswini Chile 2021-10-05 14:35:32 +05:30 committed by GitHub
parent 30244f79a6
commit 40d0b2faf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 825 additions and 50 deletions

View file

@ -11,7 +11,7 @@
<thumbnail
v-if="!hideThumbnail"
:src="currentContact.thumbnail"
:badge="inboxBadge"
:badge="chatBadge"
class="columns"
:username="currentContact.name"
:status="currentContact.availability_status"
@ -119,6 +119,10 @@ export default {
accountId: 'getCurrentAccountId',
}),
chatExtraAttributes() {
return this.chat.additional_attributes;
},
chatMetadata() {
return this.chat.meta || {};
},
@ -127,6 +131,14 @@ export default {
return this.chatMetadata.assignee || {};
},
chatBadge() {
if(this.chatExtraAttributes['type']){
return this.chatExtraAttributes['type']
} else {
return this.chatMetadata.channel
}
},
currentContact() {
return this.$store.getters['contacts/getContact'](
this.chatMetadata.sender.id