mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove MTP::MainInstance() global access point.
This commit is contained in:
@@ -148,7 +148,11 @@ void Session::saveSettingsDelayed(crl::time delay) {
|
||||
_saveSettingsTimer.callOnce(delay);
|
||||
}
|
||||
|
||||
not_null<MTP::Instance*> Session::mtp() {
|
||||
MTP::DcId Session::mainDcId() const {
|
||||
return _account->mtp()->mainDcId();
|
||||
}
|
||||
|
||||
not_null<MTP::Instance*> Session::mtp() const {
|
||||
return _account->mtp();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user