Renamed rpl::start_with_ with rpl::on_.

This commit is contained in:
23rd
2025-12-10 20:51:57 +03:00
parent 29b714dd5f
commit eca8dfb0ec
623 changed files with 4524 additions and 4524 deletions
+21 -21
View File
@@ -239,7 +239,7 @@ void ShareBox::prepareCommentField() {
(_bottomWidget
? _bottomWidget->heightValue()
: (rpl::single(0) | rpl::type_erased))
) | rpl::start_with_next([=](int height, int comment, int bottom) {
) | rpl::on_next([=](int height, int comment, int bottom) {
_comment->moveToLeft(0, height - bottom - comment);
if (_bottomWidget) {
_bottomWidget->moveToLeft(0, height - bottom);
@@ -249,7 +249,7 @@ void ShareBox::prepareCommentField() {
const auto field = _comment->entity();
field->submits(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
submit({});
}, field->lifetime());
@@ -263,7 +263,7 @@ void ShareBox::prepareCommentField() {
}
field->setSubmitSettings(Core::App().settings().sendSubmitWay());
field->changes() | rpl::start_with_next([=] {
field->changes() | rpl::on_next([=] {
if (!field->getLastText().isEmpty()) {
setCloseByOutsideClick(false);
} else if (_inner->selected().empty()) {
@@ -324,17 +324,17 @@ void ShareBox::prepare() {
(_bottomWidget
? _bottomWidget->heightValue()
: rpl::single(0) | rpl::type_erased)
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
updateScrollSkips();
}, _comment->lifetime());
_inner->searchRequests(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
needSearchByUsername();
}, _inner->lifetime());
_inner->scrollToRequests(
) | rpl::start_with_next([=](const Ui::ScrollToRequest &request) {
) | rpl::on_next([=](const Ui::ScrollToRequest &request) {
scrollTo(request);
}, _inner->lifetime());
@@ -368,11 +368,11 @@ void ShareBox::prepare() {
},
Window::GifPauseReason::Layer);
chatsFilters->lower();
chatsFilters->heightValue() | rpl::start_with_next([this](int h) {
chatsFilters->heightValue() | rpl::on_next([this](int h) {
updateScrollSkips();
scrollToY(0);
}, lifetime());
_select->heightValue() | rpl::start_with_next([=](int h) {
_select->heightValue() | rpl::on_next([=](int h) {
chatsFilters->moveToLeft(0, h);
}, chatsFilters->lifetime());
_chatsFilters = chatsFilters;
@@ -557,7 +557,7 @@ void ShareBox::showMenu(not_null<Ui::RpWidget*> parent) {
nullptr);
std::move(
text
) | rpl::start_with_next([action = item->action()](QString text) {
) | rpl::on_next([action = item->action()](QString text) {
action->setText(text);
}, item->lifetime());
item->init(checked);
@@ -620,7 +620,7 @@ void ShareBox::createButtons() {
send->setAcceptBoth();
send->clicks(
) | rpl::start_with_next([=](Qt::MouseButton button) {
) | rpl::on_next([=](Qt::MouseButton button) {
if (button == Qt::RightButton) {
showMenu(send);
}
@@ -708,7 +708,7 @@ void ShareBox::submit(Api::SendOptions options) {
if (!waiting.empty()) {
_descriptor.session->changes().peerUpdates(
Data::PeerUpdate::Flag::FullInfo
) | rpl::start_with_next([=](const Data::PeerUpdate &update) {
) | rpl::on_next([=](const Data::PeerUpdate &update) {
if (waiting.contains(update.peer)) {
withPaymentApproved(alreadyApproved);
}
@@ -718,7 +718,7 @@ void ShareBox::submit(Api::SendOptions options) {
_descriptor.session->credits().loadedValue(
) | rpl::filter(
rpl::mappers::_1
) | rpl::take(1) | rpl::start_with_next([=] {
) | rpl::take(1) | rpl::on_next([=] {
withPaymentApproved(alreadyApproved);
}, _submitLifetime);
}
@@ -830,7 +830,7 @@ ShareBox::Inner::Inner(
rpl::merge(
Data::AmPremiumValue(session) | rpl::to_empty,
session->api().premium().someMessageMoneyRestrictionsResolved()
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
refreshRestrictedRows();
}, lifetime());
}
@@ -863,24 +863,24 @@ ShareBox::Inner::Inner(
_descriptor.session->changes().peerUpdates(
Data::PeerUpdate::Flag::Photo
) | rpl::start_with_next([=](const Data::PeerUpdate &update) {
) | rpl::on_next([=](const Data::PeerUpdate &update) {
updateChat(update.peer);
}, lifetime());
_descriptor.session->changes().realtimeNameUpdates(
) | rpl::start_with_next([=](const Data::NameUpdate &update) {
) | rpl::on_next([=](const Data::NameUpdate &update) {
_defaultChatsIndexed->peerNameChanged(
update.peer,
update.oldFirstLetters);
}, lifetime());
_descriptor.session->downloaderTaskFinished(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
update();
}, lifetime());
style::PaletteChanged(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
invalidateCache();
}, lifetime());
}
@@ -1388,7 +1388,7 @@ void ShareBox::Inner::chooseForumTopic(not_null<Data::Forum*> forum) {
Assert(!chat->topic);
chat->topic = topic;
chat->topic->destroyed(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
changePeerCheckState(chat, false);
}, chat->topicLifetime);
updateChatName(chat);
@@ -1400,7 +1400,7 @@ void ShareBox::Inner::chooseForumTopic(not_null<Data::Forum*> forum) {
});
forum->destroyed(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
box->closeBox();
}, box->lifetime());
};
@@ -1436,7 +1436,7 @@ void ShareBox::Inner::chooseMonoforumSublist(
Assert(!chat->sublist);
chat->sublist = sublist;
chat->sublist->destroyed(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
changePeerCheckState(chat, false);
}, chat->sublistLifetime);
updateChatName(chat);
@@ -1448,7 +1448,7 @@ void ShareBox::Inner::chooseMonoforumSublist(
});
monoforum->destroyed(
) | rpl::start_with_next([=] {
) | rpl::on_next([=] {
box->closeBox();
}, box->lifetime());
};