fix chats
This commit is contained in:
parent
6417453719
commit
08ad92c53d
2 changed files with 7 additions and 1 deletions
|
|
@ -145,8 +145,12 @@
|
||||||
:full-content="true"
|
:full-content="true"
|
||||||
>
|
>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<EmojiReactions :status="message" />
|
<EmojiReactions
|
||||||
|
v-if="isStatus"
|
||||||
|
:status="message"
|
||||||
|
/>
|
||||||
<Quote
|
<Quote
|
||||||
|
v-if="isStatus"
|
||||||
class="quoted-post"
|
class="quoted-post"
|
||||||
:status-id="quoteId"
|
:status-id="quoteId"
|
||||||
:status-url="quoteUrl"
|
:status-url="quoteUrl"
|
||||||
|
|
|
||||||
|
|
@ -343,6 +343,8 @@ const Chat = {
|
||||||
accountId: this.recipientId,
|
accountId: this.recipientId,
|
||||||
credentials: useOAuthStore().token,
|
credentials: useOAuthStore().token,
|
||||||
})
|
})
|
||||||
|
this.$store.commit('addNewUsers', [data.account])
|
||||||
|
data.account = this.$store.getters.findUser(data.account.id)
|
||||||
this.chat = data
|
this.chat = data
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error creating or getting a chat', e)
|
console.error('Error creating or getting a chat', e)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue