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

Add observing Data::DownloadManager.

This commit is contained in:
John Preston
2022-02-21 18:40:20 +03:00
parent 7718764294
commit 280d79fecc
7 changed files with 393 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_session.h"
#include "data/data_changes.h"
#include "data/data_user.h"
#include "data/data_download_manager.h"
#include "data/stickers/data_stickers.h"
#include "window/window_session_controller.h"
#include "window/window_controller.h"
@@ -158,6 +159,8 @@ Session::Session(
_api->requestNotifySettings(MTP_inputNotifyUsers());
_api->requestNotifySettings(MTP_inputNotifyChats());
_api->requestNotifySettings(MTP_inputNotifyBroadcasts());
Core::App().downloadManager().trackSession(this);
}
void Session::setTmpPassword(const QByteArray &password, TimeId validUntil) {