mirror of
https://github.com/vale981/tdesktop
synced 2025-03-08 11:11:39 -05:00
fixed crash in groups uniting
This commit is contained in:
parent
c0e7019d4f
commit
22aef5290f
1 changed files with 1 additions and 6 deletions
|
@ -1987,12 +1987,7 @@ void History::addOlderSlice(const QVector<MTPMessage> &slice, const QVector<MTPM
|
|||
|
||||
while (till && prev && till->type() == HistoryItemGroup && prev->type() == HistoryItemGroup) {
|
||||
static_cast<HistoryGroup*>(prev)->uniteWith(static_cast<HistoryGroup*>(till));
|
||||
till->detach();
|
||||
delete till;
|
||||
if (blocks.front()->items.isEmpty()) {
|
||||
delete blocks.front();
|
||||
blocks.pop_front();
|
||||
}
|
||||
till->destroy();
|
||||
till = blocks.isEmpty() ? 0 : blocks.front()->items.front();
|
||||
}
|
||||
if (till && prev && prev->date.date() != till->date.date()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue