Skip to content

Commit 7466d6d

Browse files
committed
(version) 2.0.2
1 parent 8d87952 commit 7466d6d

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

dist/vue-advanced-chat.es.js

+6-13
Original file line numberDiff line numberDiff line change
@@ -28436,7 +28436,6 @@ const _sfc_main$2 = {
2843628436
editedMessageId: null,
2843728437
initReplyMessage: null,
2843828438
initEditMessage: null,
28439-
infiniteState: null,
2844028439
loadingMessages: false,
2844128440
observer: null,
2844228441
showLoader: true,
@@ -28467,8 +28466,11 @@ const _sfc_main$2 = {
2846728466
}
2846828467
},
2846928468
watch: {
28470-
roomId() {
28471-
this.onRoomChanged();
28469+
roomId: {
28470+
immediate: true,
28471+
handler() {
28472+
this.onRoomChanged();
28473+
}
2847228474
},
2847328475
messages: {
2847428476
deep: true,
@@ -28484,17 +28486,12 @@ const _sfc_main$2 = {
2848428486
if ((oldVal == null ? void 0 : oldVal.length) === (newVal == null ? void 0 : newVal.length) - 1) {
2848528487
this.newMessages = [];
2848628488
}
28487-
if (this.infiniteState) {
28488-
this.infiniteState.loaded();
28489-
}
2849028489
setTimeout(() => this.loadingMoreMessages = false);
2849128490
}
2849228491
},
2849328492
messagesLoaded(val) {
2849428493
if (val)
2849528494
this.updateLoadingMessages(false);
28496-
if (this.infiniteState)
28497-
this.infiniteState.complete();
2849828495
}
2849928496
},
2850028497
mounted() {
@@ -28503,11 +28500,7 @@ const _sfc_main$2 = {
2850328500
methods: {
2850428501
updateLoadingMessages(val) {
2850528502
this.loadingMessages = val;
28506-
if (val) {
28507-
this.infiniteState = null;
28508-
} else {
28509-
if (this.infiniteState)
28510-
this.infiniteState.loaded();
28503+
if (!val) {
2851128504
setTimeout(() => this.initIntersectionObserver());
2851228505
}
2851328506
},

dist/vue-advanced-chat.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-advanced-chat",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"license": "MIT",
55
"description": "A beautiful chat rooms component made with Vue.js - compatible with Vue, React & Angular",
66
"author": {

0 commit comments

Comments
 (0)