This commit is contained in:
Ulf Gebhardt 2023-07-18 10:54:27 +02:00
parent ae2d6c7ad5
commit 33ecc4764e
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 12 additions and 8 deletions

View File

@ -61,7 +61,12 @@
<script> <script>
import { roomQuery, createRoom, unreadRoomsQuery } from '~/graphql/Rooms' import { roomQuery, createRoom, unreadRoomsQuery } from '~/graphql/Rooms'
import { messageQuery, createMessageMutation, chatMessageAdded, markMessagesAsSeen } from '~/graphql/Messages' import {
messageQuery,
createMessageMutation,
chatMessageAdded,
markMessagesAsSeen,
} from '~/graphql/Messages'
import chatStyle from '~/constants/chat.js' import chatStyle from '~/constants/chat.js'
import { mapGetters, mapMutations } from 'vuex' import { mapGetters, mapMutations } from 'vuex'
@ -181,10 +186,9 @@ export default {
observer.subscribe({ observer.subscribe({
next: this.chatMessageAdded, next: this.chatMessageAdded,
error(error) { error(error) {
console.error(error) this.$toast.error(error)
}, },
}) })
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({