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 {
239239 editedMessageId: null ,
240240 initReplyMessage: null ,
241241 initEditMessage: null ,
242- infiniteState: null ,
243242 loadingMessages: false ,
244243 observer: null ,
245244 showLoader: true ,
@@ -301,15 +300,11 @@ export default {
301300 if (oldVal? .length === newVal? .length - 1 ) {
302301 this .newMessages = []
303302 }
304- if (this .infiniteState ) {
305- this .infiniteState .loaded ()
306- }
307303 setTimeout (() => (this .loadingMoreMessages = false ))
308304 }
309305 },
310306 messagesLoaded (val ) {
311307 if (val) this .updateLoadingMessages (false )
312- if (this .infiniteState ) this .infiniteState .complete ()
313308 }
314309 },
315310
@@ -321,10 +316,7 @@ export default {
321316 updateLoadingMessages (val ) {
322317 this .loadingMessages = val
323318
324- if (val) {
325- this .infiniteState = null
326- } else {
327- if (this .infiniteState ) this .infiniteState .loaded ()
319+ if (! val) {
328320 setTimeout (() => this .initIntersectionObserver ())
329321 }
330322 },
You can’t perform that action at this time.
0 commit comments