New 'unseenStatus' field for certain secondary message types
This commit is contained in:
parent
ed9f54d7d6
commit
3a1df01c9e
23 changed files with 610 additions and 143 deletions
|
@ -134,7 +134,7 @@ type ScrollAnchorBeforeUpdateProps = Readonly<
|
|||
| 'isSomeoneTyping'
|
||||
| 'items'
|
||||
| 'messageLoadingState'
|
||||
| 'oldestUnreadIndex'
|
||||
| 'oldestUnseenIndex'
|
||||
| 'scrollToIndex'
|
||||
| 'scrollToIndexCounter'
|
||||
>
|
||||
|
@ -169,7 +169,7 @@ export function getScrollAnchorBeforeUpdate(
|
|||
if (props.isIncomingMessageRequest) {
|
||||
return ScrollAnchor.ChangeNothing;
|
||||
}
|
||||
if (isNumber(props.oldestUnreadIndex)) {
|
||||
if (isNumber(props.oldestUnseenIndex)) {
|
||||
return ScrollAnchor.ScrollToUnreadIndicator;
|
||||
}
|
||||
return ScrollAnchor.ScrollToBottom;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue