Don't allow reordering of the archive.

This commit is contained in:
John Preston
2019-04-18 15:31:30 +04:00
parent 74c65f30f7
commit 518ff146b2
13 changed files with 62 additions and 43 deletions
@@ -184,13 +184,14 @@ DialogsWidget::DialogsWidget(QWidget *parent, not_null<Window::Controller*> cont
});
connect(_scroll, SIGNAL(geometryChanged()), _inner, SLOT(onParentGeometryChanged()));
connect(_scroll, SIGNAL(scrolled()), this, SLOT(onListScroll()));
session().data().chatsListChanges(
) | rpl::filter([=](Data::Folder *folder) {
return (folder == _inner->shownFolder());
}) | rpl::start_with_next([=] {
_inner->refresh();
onListScroll();
Ui::PostponeCall(this, [=] { onListScroll(); });
}, lifetime());
connect(_filter, &Ui::FlatInput::cancelled, [=] {
onCancel();
});