mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
fixed crash in groups uniting
This commit is contained in:
@@ -1987,12 +1987,7 @@ void History::addOlderSlice(const QVector<MTPMessage> &slice, const QVector<MTPM
|
|||||||
|
|
||||||
while (till && prev && till->type() == HistoryItemGroup && prev->type() == HistoryItemGroup) {
|
while (till && prev && till->type() == HistoryItemGroup && prev->type() == HistoryItemGroup) {
|
||||||
static_cast<HistoryGroup*>(prev)->uniteWith(static_cast<HistoryGroup*>(till));
|
static_cast<HistoryGroup*>(prev)->uniteWith(static_cast<HistoryGroup*>(till));
|
||||||
till->detach();
|
till->destroy();
|
||||||
delete till;
|
|
||||||
if (blocks.front()->items.isEmpty()) {
|
|
||||||
delete blocks.front();
|
|
||||||
blocks.pop_front();
|
|
||||||
}
|
|
||||||
till = blocks.isEmpty() ? 0 : blocks.front()->items.front();
|
till = blocks.isEmpty() ? 0 : blocks.front()->items.front();
|
||||||
}
|
}
|
||||||
if (till && prev && prev->date.date() != till->date.date()) {
|
if (till && prev && prev->date.date() != till->date.date()) {
|
||||||
|
Reference in New Issue
Block a user