mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +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:
@@ -837,14 +837,12 @@ public:
|
||||
|
||||
protected:
|
||||
void rpcInvalidate() {
|
||||
for (DoneHandlers::iterator i = _rpcDoneHandlers.begin(), e = _rpcDoneHandlers.end(); i != e; ++i) {
|
||||
(*i)->invalidate();
|
||||
for (auto handler : base::take(_rpcDoneHandlers)) {
|
||||
handler->invalidate();
|
||||
}
|
||||
_rpcDoneHandlers.clear();
|
||||
for (FailHandlers::iterator i = _rpcFailHandlers.begin(), e = _rpcFailHandlers.end(); i != e; ++i) {
|
||||
(*i)->invalidate();
|
||||
for (auto handler : base::take(_rpcFailHandlers)) {
|
||||
handler->invalidate();
|
||||
}
|
||||
_rpcFailHandlers.clear();
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user