2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use notify* instead of mark* in Data::Session.

This commit is contained in:
John Preston
2018-01-17 21:20:55 +03:00
parent 8a56ede187
commit 04c8c95634
17 changed files with 137 additions and 140 deletions

View File

@@ -646,10 +646,10 @@ HistoryWidget::HistoryWidget(QWidget *parent, not_null<Window::Controller*> cont
}
}
});
Auth().data().itemLayoutChanged(
) | rpl::start_with_next([this](auto item) {
Auth().data().viewLayoutChanged(
) | rpl::start_with_next([this](auto view) {
if (_peer && _list) {
if (const auto view = item->mainView()) {
if (view == view->data()->mainView()) {
if (view->isUnderCursor()) {
_list->onUpdateSelected();
}
@@ -909,7 +909,7 @@ void HistoryWidget::start() {
updateStickersByEmoji();
}, lifetime());
updateRecentStickers();
Auth().data().markSavedGifsUpdated();
Auth().data().notifySavedGifsUpdated();
subscribe(Auth().api().fullPeerUpdated(), [this](PeerData *peer) {
fullPeerUpdated(peer);
});