mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix crash on launch with passcode.
This commit is contained in:
@@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
namespace Main {
|
||||
class Account;
|
||||
class Session;
|
||||
} // namespace Main
|
||||
|
||||
namespace Media::View {
|
||||
@@ -46,6 +47,10 @@ public:
|
||||
|
||||
return *_account;
|
||||
}
|
||||
[[nodiscard]] Main::Account *maybeAccount() const {
|
||||
return _account;
|
||||
}
|
||||
[[nodiscard]] Main::Session *maybeSession() const;
|
||||
[[nodiscard]] SessionController *sessionController() const {
|
||||
return _sessionController.get();
|
||||
}
|
||||
|
Reference in New Issue
Block a user