Skip to content
Unverified Commit 8816f266 authored by Vincent Petry's avatar Vincent Petry
Browse files

Prevent loading old messages twice on scroll



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: default avatarVincent Petry <vincent@nextcloud.com>
parent bd440f0a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment