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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user