feat: disable upload after one message

This commit is contained in:
Shivam Mishra
2024-01-25 11:00:03 +05:30
parent fa907840c7
commit 89e007c4c3
3 changed files with 27 additions and 4 deletions
@@ -109,6 +109,7 @@
<reply-bottom-panel
:conversation-id="conversationId"
:enable-multiple-file-upload="enableMultipleFileUpload"
:disable-file-upload="disableFileUpload"
:has-whatsapp-templates="hasWhatsappTemplates"
:inbox="inbox"
:is-on-private-note="isOnPrivateNote"
@@ -465,6 +466,13 @@ export default {
showReplyHead() {
return !this.isOnPrivateNote && this.isAnEmailChannel;
},
disableFileUpload() {
if (this.isAFacebookInbox) {
return this.hasAttachments > 0;
}
return false;
},
enableMultipleFileUpload() {
return (
this.isAnEmailChannel ||