Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Load messages after sending a message

Acho Arnold10a39edbbdf1
diff --git a/web/pages/threads/_id.vue b/web/pages/threads/_id.vue
index 4d06f897..d445f8e7 100644
--- a/web/pages/threads/_id.vue
+++ b/web/pages/threads/_id.vue
@@ -422,15 +422,10 @@ export default Vue.extend({
}
await this.$store.dispatch('sendMessage', request)
+ this.loadMessages()
this.formMessage = ''
this.submitting = false
-
- this.$nextTick(() => {
- ;(this.$refs.messageInput as any).$refs.input.focus()
- this.scrollToElement()
- ;(this.$refs.form as any).reset()
- })
},
},
})