fix chats
This commit is contained in:
parent
6417453719
commit
08ad92c53d
2 changed files with 7 additions and 1 deletions
|
|
@ -343,6 +343,8 @@ const Chat = {
|
|||
accountId: this.recipientId,
|
||||
credentials: useOAuthStore().token,
|
||||
})
|
||||
this.$store.commit('addNewUsers', [data.account])
|
||||
data.account = this.$store.getters.findUser(data.account.id)
|
||||
this.chat = data
|
||||
} catch (e) {
|
||||
console.error('Error creating or getting a chat', e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue