mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix crash in replies list management.
This commit is contained in:
parent
d4f2c96322
commit
e8a58c4c8d
1 changed files with 1 additions and 1 deletions
|
@ -551,7 +551,7 @@ bool RepliesList::processMessagesIsEmpty(const MTPmessages_Messages &result) {
|
|||
*correct = std::max(
|
||||
checkedCount - *decrementFrom - nowSize,
|
||||
0);
|
||||
*decrementFrom = *_fullCount.current() - *correct - nowSize;
|
||||
*decrementFrom = checkedCount - *correct - nowSize;
|
||||
Assert(*decrementFrom >= 0);
|
||||
} else if (_skippedBefore) {
|
||||
*_skippedBefore = std::min(*_skippedBefore, checkedCount - nowSize);
|
||||
|
|
Loading…
Add table
Reference in a new issue