Skip to content

Commit 10a39ed

Browse files
committed
Load messages after sending a message
1 parent ca500d5 commit 10a39ed

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

web/pages/threads/_id.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,10 @@ export default Vue.extend({
422422
}
423423
424424
await this.$store.dispatch('sendMessage', request)
425+
this.loadMessages()
425426
426427
this.formMessage = ''
427428
this.submitting = false
428-
429-
this.$nextTick(() => {
430-
;(this.$refs.messageInput as any).$refs.input.focus()
431-
this.scrollToElement()
432-
;(this.$refs.form as any).reset()
433-
})
434429
},
435430
},
436431
})

0 commit comments

Comments
 (0)