mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Pass MTP::Instance to MTP::Sender.
This commit is contained in:
@@ -142,7 +142,8 @@ void PeerListRowWithLink::paintAction(
|
||||
|
||||
PeerListGlobalSearchController::PeerListGlobalSearchController(
|
||||
not_null<Window::SessionNavigation*> navigation)
|
||||
: _navigation(navigation) {
|
||||
: _navigation(navigation)
|
||||
, _api(_navigation->session().api().instance()) {
|
||||
_timer.setCallback([this] { searchOnServer(); });
|
||||
}
|
||||
|
||||
@@ -169,7 +170,7 @@ bool PeerListGlobalSearchController::searchInCache() {
|
||||
}
|
||||
|
||||
void PeerListGlobalSearchController::searchOnServer() {
|
||||
_requestId = request(MTPcontacts_Search(
|
||||
_requestId = _api.request(MTPcontacts_Search(
|
||||
MTP_string(_query),
|
||||
MTP_int(SearchPeopleLimit)
|
||||
)).done([=](const MTPcontacts_Found &result, mtpRequestId requestId) {
|
||||
|
Reference in New Issue
Block a user