mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Remove MTP::MainInstance() global access point.
This commit is contained in:
@@ -105,8 +105,6 @@ public:
|
||||
return *_diceStickersPacks;
|
||||
}
|
||||
|
||||
[[nodiscard]] base::Observable<void> &downloaderTaskFinished();
|
||||
|
||||
[[nodiscard]] Window::Notifications::System ¬ifications() {
|
||||
return *_notifications;
|
||||
}
|
||||
@@ -124,7 +122,10 @@ public:
|
||||
[[nodiscard]] auto windows() const
|
||||
-> const base::flat_set<not_null<Window::SessionController*>> &;
|
||||
|
||||
[[nodiscard]] not_null<MTP::Instance*> mtp();
|
||||
// Shortcuts.
|
||||
[[nodiscard]] base::Observable<void> &downloaderTaskFinished();
|
||||
[[nodiscard]] MTP::DcId mainDcId() const;
|
||||
[[nodiscard]] not_null<MTP::Instance*> mtp() const;
|
||||
[[nodiscard]] ApiWrap &api() {
|
||||
return *_api;
|
||||
}
|
||||
|
Reference in New Issue
Block a user