We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9312800 commit 7f50064Copy full SHA for 7f50064
src/ChatWindow/Room/Room.vue
@@ -465,7 +465,7 @@ export default {
465
room: {
466
immediate: true,
467
handler(newVal, oldVal) {
468
- if (!oldVal || (newVal && newVal.roomId !== oldVal.roomId)) {
+ if (newVal.roomId && (!oldVal || newVal.roomId !== oldVal.roomId)) {
469
this.onRoomChanged()
470
}
471
@@ -552,6 +552,10 @@ export default {
552
setTimeout(() => this.onChangeInput())
553
554
555
+ if (!this.messages.length && this.messagesLoaded) {
556
+ this.loadingMessages = false
557
+ }
558
+
559
const unwatch = this.$watch(
560
() => this.messages,
561
val => {
0 commit comments