mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Replace observer_peer with rpl interface.
This commit is contained in:
@@ -176,6 +176,11 @@ Widget::Widget(
|
||||
, _singleMessageSearch(&controller->session()) {
|
||||
_inner = _scroll->setOwnedWidget(object_ptr<InnerWidget>(this, controller));
|
||||
|
||||
_inner->updated(
|
||||
) | rpl::start_with_next([=] {
|
||||
onListScroll();
|
||||
}, lifetime());
|
||||
|
||||
rpl::combine(
|
||||
session().api().dialogsLoadMayBlockByDate(),
|
||||
session().api().dialogsLoadBlockedByDate()
|
||||
@@ -183,6 +188,11 @@ Widget::Widget(
|
||||
refreshLoadMoreButton(mayBlock, isBlocked);
|
||||
}, lifetime());
|
||||
|
||||
session().data().newMessageSent(
|
||||
) | rpl::start_with_next([=] {
|
||||
jumpToTop();
|
||||
}, lifetime());
|
||||
|
||||
fullSearchRefreshOn(session().settings().skipArchiveInSearchChanges(
|
||||
) | rpl::map([] { return rpl::empty_value(); }));
|
||||
|
||||
|
Reference in New Issue
Block a user