This commit is contained in:
Ulf Gebhardt 2023-07-10 16:27:36 +02:00
parent aecc24e374
commit 0ad59d9412
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 4 additions and 4 deletions

View File

@ -155,16 +155,16 @@ export default {
},
refetchMessage(roomId) {
this.fetchMessages({room: this.rooms.find((r) => r.roomId === roomId)})
this.fetchMessages({ room: this.rooms.find((r) => r.roomId === roomId) })
},
async sendMessage(message) {
try {
const result = await this.$apollo.mutate({
await this.$apollo.mutate({
mutation: createMessageMutation(),
variables: {
roomId: message.roomId,
content: message.content
content: message.content,
},
})
} catch (error) {

View File

@ -25,4 +25,4 @@ export const createMessageMutation = () => {
}
}
`
}
}