mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
removed refetch message method
This commit is contained in:
parent
851dd2e3e6
commit
0cb45cd8f6
@ -268,13 +268,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
refetchMessage(roomId) {
|
||||
this.fetchMessages({
|
||||
room: this.rooms.find((r) => r.roomId === roomId),
|
||||
options: { refetch: true },
|
||||
})
|
||||
},
|
||||
|
||||
async sendMessage(message) {
|
||||
try {
|
||||
await this.$apollo.mutate({
|
||||
@ -287,7 +280,10 @@ export default {
|
||||
} catch (error) {
|
||||
this.$toast.error(error.message)
|
||||
}
|
||||
this.refetchMessage(message.roomId)
|
||||
this.fetchMessages({
|
||||
room: this.rooms.find((r) => r.roomId === roomId),
|
||||
options: { refetch: true },
|
||||
})
|
||||
},
|
||||
|
||||
getInitialsName(fullname) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user