Chore: Fix issues with conversation data models (#1000)
Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
@@ -121,12 +121,7 @@ export default {
|
||||
currentChat: 'getSelectedChat',
|
||||
}),
|
||||
channelType() {
|
||||
const {
|
||||
meta: {
|
||||
sender: { channel },
|
||||
},
|
||||
} = this.currentChat;
|
||||
return channel;
|
||||
return this.currentChat.meta.channel;
|
||||
},
|
||||
conversationType() {
|
||||
const { additional_attributes: additionalAttributes } = this.currentChat;
|
||||
@@ -145,10 +140,7 @@ export default {
|
||||
return 10000;
|
||||
},
|
||||
showFileUpload() {
|
||||
return (
|
||||
this.channelType === 'Channel::WebWidget' ||
|
||||
this.channelType === 'Channel::TwilioSms'
|
||||
);
|
||||
return this.channelType === 'Channel::WebWidget';
|
||||
},
|
||||
replyButtonLabel() {
|
||||
if (this.isPrivate) {
|
||||
|
||||
Reference in New Issue
Block a user