Skip to content

Commit 165adb9

Browse files
committed
fix: Turn off programatic scroll for message jumps
1 parent a3c281d commit 165adb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/stream-chat-angular/src/lib/message-list/message-list.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ export class MessageListComponent
214214
this.olderMassagesLoaded = false;
215215
} else if (
216216
this.getScrollPosition() !== 'bottom' &&
217-
!this.isUserScrolled
217+
!this.isUserScrolled &&
218+
!this.highlightedMessageId
218219
) {
219220
this.isLatestMessageInList
220221
? this.scrollToBottom()

0 commit comments

Comments
 (0)