Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #5198

Whenever the old messages are already loading initially when opening a
conversation, a scroll event might call getOldMessages again which would
cancel the previous one.

The initial old messages load is using includeLastKnown=1 while the others use
0. So if it gets cancelled, we will miss the "last known" message as it
won't be included in subsequent calls.

This fix prevents repeated calls to getOldMessages to avoid the above
issue.

Signed-off-by: Vincent Petry <[email protected]>
@nickvergessen nickvergessen merged commit daa3e5a into stable21.1 Feb 19, 2021
@nickvergessen nickvergessen deleted the backport/5198/stable21.1 branch February 19, 2021 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants