File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ export default {
239
239
editedMessageId: null ,
240
240
initReplyMessage: null ,
241
241
initEditMessage: null ,
242
- infiniteState: null ,
243
242
loadingMessages: false ,
244
243
observer: null ,
245
244
showLoader: true ,
@@ -301,15 +300,11 @@ export default {
301
300
if (oldVal? .length === newVal? .length - 1 ) {
302
301
this .newMessages = []
303
302
}
304
- if (this .infiniteState ) {
305
- this .infiniteState .loaded ()
306
- }
307
303
setTimeout (() => (this .loadingMoreMessages = false ))
308
304
}
309
305
},
310
306
messagesLoaded (val ) {
311
307
if (val) this .updateLoadingMessages (false )
312
- if (this .infiniteState ) this .infiniteState .complete ()
313
308
}
314
309
},
315
310
@@ -321,10 +316,7 @@ export default {
321
316
updateLoadingMessages (val ) {
322
317
this .loadingMessages = val
323
318
324
- if (val) {
325
- this .infiniteState = null
326
- } else {
327
- if (this .infiniteState ) this .infiniteState .loaded ()
319
+ if (! val) {
328
320
setTimeout (() => this .initIntersectionObserver ())
329
321
}
330
322
},
You can’t perform that action at this time.
0 commit comments