mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix crash in replies list management.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user