Bug: Fix missing contact_id in conversation list (#798)
This commit is contained in:
parent
8f0c4281c7
commit
8906fd808d
1 changed files with 3 additions and 7 deletions
|
@ -146,7 +146,7 @@ export default {
|
|||
return `${platformName || ''} ${platformVersion || ''}`;
|
||||
},
|
||||
contactId() {
|
||||
return this.currentConversationMetaData.contact_id;
|
||||
return this.currentConversationMetaData.contact?.id;
|
||||
},
|
||||
contact() {
|
||||
return this.$store.getters['contacts/getContact'](this.contactId);
|
||||
|
@ -155,16 +155,12 @@ export default {
|
|||
watch: {
|
||||
contactId(newContactId, prevContactId) {
|
||||
if (newContactId && newContactId !== prevContactId) {
|
||||
this.$store.dispatch('contacts/show', {
|
||||
id: this.currentConversationMetaData.contact_id,
|
||||
});
|
||||
this.$store.dispatch('contacts/show', { id: newContactId });
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch('contacts/show', {
|
||||
id: this.currentConversationMetaData.contact_id,
|
||||
});
|
||||
this.$store.dispatch('contacts/show', { id: this.contactId });
|
||||
},
|
||||
methods: {
|
||||
onPanelToggle() {
|
||||
|
|
Loading…
Reference in a new issue