2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Add and use only rpl::start_with_*() methods.

This commit is contained in:
John Preston
2017-09-27 11:43:35 +03:00
parent ed061252a5
commit 086e46c162
41 changed files with 384 additions and 1113 deletions

View File

@@ -1059,7 +1059,8 @@ void MediaView::validateSharedMedia() {
*key,
kIdsLimit,
kIdsLimit
) | rpl::start([this](SharedMediaWithLastSlice &&update) {
) | rpl::start_with_next([this](
SharedMediaWithLastSlice &&update) {
handleSharedMediaUpdate(std::move(update));
}, _sharedMedia->lifetime);
} else {
@@ -1118,7 +1119,8 @@ void MediaView::validateUserPhotos() {
*key,
kIdsLimit,
kIdsLimit
) | rpl::start([this](UserPhotosSlice &&update) {
) | rpl::start_with_next([this](
UserPhotosSlice &&update) {
handleUserPhotosUpdate(std::move(update));
}, _userPhotos->lifetime);
} else {