2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use improved rpl::start().

This commit is contained in:
John Preston
2017-09-18 20:04:45 +03:00
parent ee9763c98f
commit 766e7dadb1
31 changed files with 145 additions and 179 deletions

View File

@@ -1064,9 +1064,9 @@ void MediaView::validateSharedMedia() {
*key,
kIdsLimit,
kIdsLimit
) | rpl::on_next([this](SharedMediaWithLastSlice &&update) {
) | rpl::start([this](SharedMediaWithLastSlice &&update) {
handleSharedMediaUpdate(std::move(update));
}) | rpl::start(_sharedMedia->lifetime);
}, _sharedMedia->lifetime);
} else {
_sharedMedia = nullptr;
_sharedMediaData = base::none;
@@ -1123,9 +1123,9 @@ void MediaView::validateUserPhotos() {
*key,
kIdsLimit,
kIdsLimit
) | rpl::on_next([this](UserPhotosSlice &&update) {
) | rpl::start([this](UserPhotosSlice &&update) {
handleUserPhotosUpdate(std::move(update));
}) | rpl::start(_userPhotos->lifetime);
}, _userPhotos->lifetime);
} else {
_userPhotos = nullptr;
_userPhotosData = base::none;