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" :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"

View file

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