mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
fix: crash
This commit is contained in:
parent
5bb633d982
commit
af18da81f4
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ SparseIdsList::AddResult SparseIdsList::addRangeItemsAndCountNew(
|
|||
SparseIdsSliceUpdate &update,
|
||||
const Range &messages,
|
||||
MsgRange noSkipRange) {
|
||||
Expects(noSkipRange.from <= noSkipRange.till);
|
||||
if (noSkipRange.from <= noSkipRange.till) {
|
||||
return { 0 }; // AyuGram: fix crash when using `saveDeletedMessages`
|
||||
}
|
||||
|
||||
if (noSkipRange.from == noSkipRange.till
|
||||
&& std::begin(messages) == std::end(messages)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue