]> cat aescling's git repositories - mastodon.git/commit
Fix older items possibly disappearing on timeline updates (#17980)
authorClaire <claire.github-309c@sitedethib.com>
Thu, 7 Apr 2022 09:27:35 +0000 (11:27 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Apr 2022 09:27:35 +0000 (11:27 +0200)
commit1b91359a4508b3068207ef4fd798a56549575591
tree610ba32c92dbc9bd67d86e4f26c5cca4dcc8db36
parentf382192862893c48cf97f13e9fbfb85b80cdc97d
Fix older items possibly disappearing on timeline updates (#17980)

In some rare cases, when receiving statuses out of order from the streaming
API then polling from the REST API, it was possible for the
`expandNormalizedTimeline` function to remove older items from the timeline.

This commit ensures that any item from the replaced slice that is older
than the oldest item retrieved from the API gets added back to the replaced
slice.
app/javascript/mastodon/reducers/timelines.js