Skip to content

Commit

Permalink
wip build
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 18, 2024
1 parent 6a1e930 commit 6d2057c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/window/window_session_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,7 @@ SessionController::SessionController(
}));
}, _lifetime);

#if 0 // todo
session->downloader().nonPremiumDelays(
) | rpl::start_with_next([=](DocumentId id) {
checkNonPremiumLimitToastDownload(id);
Expand All @@ -1615,6 +1616,7 @@ SessionController::SessionController(
) | rpl::start_with_next([=](FullMsgId id) {
checkNonPremiumLimitToastUpload(id);
}, _lifetime);
#endif

session->addWindow(this);

Expand Down Expand Up @@ -1988,7 +1990,9 @@ void SessionController::setupPremiumToast() {
}) | rpl::distinct_until_changed() | rpl::skip(
1
) | rpl::filter([=](bool premium) {
#if 0 // mtp
session().mtp().requestConfig();
#endif
return premium;
}) | rpl::start_with_next([=] {
MainWindowShow(this).showToast({
Expand Down

0 comments on commit 6d2057c

Please sign in to comment.