2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Remove MTP::MainInstance() global access point.

This commit is contained in:
John Preston
2020-06-11 20:09:46 +04:00
parent 7f09da9e32
commit 0ad7dcaef9
84 changed files with 823 additions and 1362 deletions

View File

@@ -13,7 +13,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/widgets/scroll_area.h"
#include "ui/special_buttons.h"
#include "api/api_single_message_search.h"
#include "mtproto/mtproto_rpc_sender.h"
class RPCError;
namespace Main {
class Session;
@@ -49,7 +50,7 @@ struct ChosenRow;
class InnerWidget;
enum class SearchRequestType;
class Widget : public Window::AbstractSectionWidget, public RPCSender {
class Widget final : public Window::AbstractSectionWidget {
Q_OBJECT
public:
@@ -167,8 +168,11 @@ private:
void refreshLoadMoreButton(bool mayBlock, bool isBlocked);
void loadMoreBlockedByDate();
bool searchFailed(SearchRequestType type, const RPCError &error, mtpRequestId req);
bool peopleFailed(const RPCError &error, mtpRequestId req);
void searchFailed(
SearchRequestType type,
const RPCError &error,
mtpRequestId requestId);
void peopleFailed(const RPCError &error, mtpRequestId requestId);
void scrollToTop();
void setupScrollUpButton();