Update CommunicationsChat.vue

This commit is contained in:
Troplo 2022-07-30 18:01:18 +10:00
parent 3d7df1c98a
commit 91386b68c0

View file

@ -1115,6 +1115,7 @@ export default {
this.focusInput() this.focusInput()
}, },
autoScroll(smooth = false) { autoScroll(smooth = false) {
this.$nextTick(() => {
if (!this.avoidAutoScroll) { if (!this.avoidAutoScroll) {
try { try {
const lastIndex = this.messages.length - 1 const lastIndex = this.messages.length - 1
@ -1141,6 +1142,7 @@ export default {
} }
} }
} }
})
}, },
getMessages() { getMessages() {
this.loadingMessages = true this.loadingMessages = true