2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Use Main::Session in download/upload.

This commit is contained in:
John Preston
2020-06-08 19:17:33 +04:00
parent 3878a1b212
commit 4b354b0928
47 changed files with 572 additions and 220 deletions

View File

@@ -906,6 +906,7 @@ void Session::startExport(const MTPInputPeer &singlePeer) {
}
_export = std::make_unique<Export::Controller>(singlePeer);
_exportPanel = std::make_unique<Export::View::PanelController>(
&session(),
_export.get());
_exportViewChanges.fire(_exportPanel.get());
@@ -944,9 +945,9 @@ void Session::suggestStartExport() {
_session,
[=] { suggestStartExport(); });
} else if (_export) {
Export::View::ClearSuggestStart();
Export::View::ClearSuggestStart(&session());
} else {
_exportSuggestion = Export::View::SuggestStart();
_exportSuggestion = Export::View::SuggestStart(&session());
}
}