Replaced observable in Dialogs::InnerWidget with rpl.

This commit is contained in:
23rd
2021-05-25 13:44:30 +03:00
parent 386fae952b
commit 3340b2dc03
3 changed files with 9 additions and 9 deletions
@@ -126,9 +126,6 @@ InnerWidget::InnerWidget(
_cancelSearchInChat->setClickedCallback([=] { cancelSearchInChat(); });
_cancelSearchInChat->hide();
_cancelSearchFromUser->setClickedCallback([=] {
searchFromUserChanged.notify(nullptr);
});
_cancelSearchFromUser->hide();
session().downloaderTaskFinished(
@@ -1957,6 +1954,10 @@ rpl::producer<> InnerWidget::listBottomReached() const {
return _listBottomReached.events();
}
rpl::producer<> InnerWidget::cancelSearchFromUserRequests() const {
return _cancelSearchFromUser->clicks() | rpl::to_empty;
}
void InnerWidget::visibleTopBottomUpdated(
int visibleTop,
int visibleBottom) {