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:
John Preston
2017-01-18 13:26:33 +03:00
parent 8f31e1ab31
commit 8bb14f4565
5 changed files with 42 additions and 16 deletions
@@ -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;