Bug: Fix missing contact_id in conversation list (#798)
This commit is contained in:
@@ -146,7 +146,7 @@ export default {
|
|||||||
return `${platformName || ''} ${platformVersion || ''}`;
|
return `${platformName || ''} ${platformVersion || ''}`;
|
||||||
},
|
},
|
||||||
contactId() {
|
contactId() {
|
||||||
return this.currentConversationMetaData.contact_id;
|
return this.currentConversationMetaData.contact?.id;
|
||||||
},
|
},
|
||||||
contact() {
|
contact() {
|
||||||
return this.$store.getters['contacts/getContact'](this.contactId);
|
return this.$store.getters['contacts/getContact'](this.contactId);
|
||||||
@@ -155,16 +155,12 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
contactId(newContactId, prevContactId) {
|
contactId(newContactId, prevContactId) {
|
||||||
if (newContactId && newContactId !== prevContactId) {
|
if (newContactId && newContactId !== prevContactId) {
|
||||||
this.$store.dispatch('contacts/show', {
|
this.$store.dispatch('contacts/show', { id: newContactId });
|
||||||
id: this.currentConversationMetaData.contact_id,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.dispatch('contacts/show', {
|
this.$store.dispatch('contacts/show', { id: this.contactId });
|
||||||
id: this.currentConversationMetaData.contact_id,
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onPanelToggle() {
|
onPanelToggle() {
|
||||||
|
|||||||
Reference in New Issue
Block a user