fix chats

This commit is contained in:
Henry Jameson 2026-07-23 16:47:17 +03:00
commit 08ad92c53d
2 changed files with 7 additions and 1 deletions

View file

@ -145,8 +145,12 @@
:full-content="true"
>
<template #footer>
<EmojiReactions :status="message" />
<EmojiReactions
v-if="isStatus"
:status="message"
/>
<Quote
v-if="isStatus"
class="quoted-post"
:status-id="quoteId"
:status-url="quoteUrl"

View file

@ -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)