feat: Use inbox image as avatar for the bot (#6859)
This commit is contained in:
@@ -119,13 +119,15 @@ export default {
|
||||
return type;
|
||||
},
|
||||
agentName() {
|
||||
if (this.message.message_type === MESSAGE_TYPE.TEMPLATE) {
|
||||
return 'Bot';
|
||||
}
|
||||
if (this.message.sender) {
|
||||
return this.message.sender.available_name || this.message.sender.name;
|
||||
}
|
||||
return 'Bot';
|
||||
|
||||
if (this.useInboxAvatarForBot) {
|
||||
return this.channelConfig.websiteName;
|
||||
}
|
||||
|
||||
return this.$t('UNREAD_VIEW.BOT');
|
||||
},
|
||||
avatarUrl() {
|
||||
// eslint-disable-next-line
|
||||
|
||||
@@ -78,6 +78,9 @@ export default {
|
||||
const { available_name: availableName, name } = this.sender;
|
||||
return availableName || name;
|
||||
}
|
||||
if (this.useInboxAvatarForBot) {
|
||||
return this.channelConfig.websiteName;
|
||||
}
|
||||
return this.$t('UNREAD_VIEW.BOT');
|
||||
},
|
||||
availabilityStatus() {
|
||||
|
||||
Reference in New Issue
Block a user