mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Pass MTP::Instance to MTP::Sender.
This commit is contained in:
@@ -21,6 +21,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "data/data_session.h"
|
||||
#include "data/data_media_types.h"
|
||||
#include "data/data_user.h"
|
||||
#include "apiwrap.h"
|
||||
#include "facades.h"
|
||||
#include "app.h"
|
||||
|
||||
@@ -216,7 +217,8 @@ void BoxController::Row::stopLastActionRipple() {
|
||||
}
|
||||
|
||||
BoxController::BoxController(not_null<Window::SessionController*> window)
|
||||
: _window(window) {
|
||||
: _window(window)
|
||||
, _api(_window->session().api().instance()) {
|
||||
}
|
||||
|
||||
Main::Session &BoxController::session() const {
|
||||
@@ -256,7 +258,7 @@ void BoxController::loadMoreRows() {
|
||||
return;
|
||||
}
|
||||
|
||||
_loadRequestId = request(MTPmessages_Search(
|
||||
_loadRequestId = _api.request(MTPmessages_Search(
|
||||
MTP_flags(0),
|
||||
MTP_inputPeerEmpty(),
|
||||
MTP_string(),
|
||||
|
Reference in New Issue
Block a user