2
0
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:
John Preston
2017-04-06 22:02:40 +03:00
parent 835b1801bc
commit 0d0307e175
16 changed files with 553 additions and 610 deletions

View File

@@ -55,7 +55,6 @@ struct SectionSlideParams;
} // namespace Window
class MainWindow;
class ApiWrap;
class ConfirmBox;
class DialogsWidget;
class HistoryWidget;
@@ -334,7 +333,6 @@ public:
void checkChatBackground();
ImagePtr newBackgroundThumb();
ApiWrap *api();
void messageDataReceived(ChannelData *channel, MsgId msgId);
void updateBotKeyboard(History *h);
@@ -374,8 +372,6 @@ public:
bool contentOverlapped(const QRect &globalRect);
void rpcClear() override;
bool isItemVisible(HistoryItem *item);
void documentLoadProgress(DocumentData *document);
@@ -668,8 +664,6 @@ private:
std::unique_ptr<App::WallPaper> _background;
std::unique_ptr<ApiWrap> _api;
bool _resizingSide = false;
int _resizingSideShift = 0;