mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move ApiWrap to AuthSession.
Also send all ApiWrap requests as an MTP::Sender. Also create AuthSession only after starting MTProto.
This commit is contained in:
@@ -191,7 +191,7 @@ namespace App {
|
||||
}
|
||||
|
||||
ApiWrap *api() {
|
||||
return main() ? main()->api() : 0;
|
||||
return AuthSession::Exists() ? &AuthSession::Current().api() : nullptr;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
Reference in New Issue
Block a user