Fix: Fetch contactable inboxes on new conversion (#2113)

* Fix: Fetch contactable inboxes everytime
This commit is contained in:
Nithin David Thomas 2021-04-17 20:08:03 +05:30 committed by GitHub
parent 8720f39ffb
commit c95aeb894f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,11 @@ export default {
default: () => ({}),
},
},
watch: {
'contact.id'(id) {
this.$store.dispatch('contacts/fetchContactableInbox', id);
},
},
mounted() {
const { id } = this.contact;
this.$store.dispatch('contacts/fetchContactableInbox', id);