mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 01:45:06 +00:00
Small layout search field hidden. Crash fix in common groups section.
Also clearing cloud drafts in deactivated chats after migrating them.
This commit is contained in:
@@ -140,7 +140,9 @@ void InnerWidget::restoreState(const SectionMemento *memento) {
|
||||
|
||||
void InnerWidget::showInitial(const QList<PeerData*> &list) {
|
||||
for_const (auto group, list) {
|
||||
_items.push_back(computeItem(group));
|
||||
if (auto item = computeItem(group)) {
|
||||
_items.push_back(item);
|
||||
}
|
||||
_preloadGroupId = group->bareId();
|
||||
}
|
||||
updateSize();
|
||||
@@ -171,7 +173,9 @@ void InnerWidget::preloadMore() {
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
_items.push_back(computeItem(chat));
|
||||
if (auto item = computeItem(chat)) {
|
||||
_items.push_back(item);
|
||||
}
|
||||
}
|
||||
_preloadGroupId = chat->bareId();
|
||||
_allLoaded = false;
|
||||
|
||||
Reference in New Issue
Block a user