@@ -77,6 +77,10 @@ export class MessageListComponent
7777 */
7878 @Input ( ) openMessageListAt : 'last-message' | 'last-unread-message' =
7979 'last-message' ;
80+ /**
81+ * You can turn on and off the loading indicator that signals to users that more messages are being loaded to the message list
82+ */
83+ @Input ( ) displayLoadingIndicator = true ;
8084 messageTemplate : TemplateRef < MessageContext > | undefined ;
8185 customDateSeparatorTemplate : TemplateRef < DateSeparatorContext > | undefined ;
8286 customnewMessagesIndicatorTemplate : TemplateRef < void > | undefined ;
@@ -369,7 +373,7 @@ export class MessageListComponent
369373 const scrollPosition = this . getScrollPosition ( ) ;
370374 this . chatClientService . chatClient ?. logger ?.(
371375 'info' ,
372- `Scrolled - scroll position: ${ scrollPosition } ` ,
376+ `Scrolled - scroll position: ${ scrollPosition } , container height: ${ this . scrollContainer . nativeElement . scrollHeight } ` ,
373377 { tags : `message list ${ this . mode } ` }
374378 ) ;
375379
@@ -391,6 +395,11 @@ export class MessageListComponent
391395 this . mode === 'main'
392396 ? void this . channelService . loadMoreMessages ( direction )
393397 : void this . channelService . loadMoreThreadReplies ( direction ) ;
398+ this . chatClientService . chatClient ?. logger ?.(
399+ 'info' ,
400+ `Displaying loading indicator` ,
401+ { tags : `message list ${ this . mode } ` }
402+ ) ;
394403 this . isLoading = true ;
395404 }
396405 this . prevScrollTop = this . scrollContainer . nativeElement . scrollTop ;
0 commit comments