mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Remove MTP::MainInstance() global access point.
This commit is contained in:
@@ -649,7 +649,7 @@ void Updates::getChannelDifference(
|
||||
}
|
||||
|
||||
void Updates::sendPing() {
|
||||
api().instance()->ping();
|
||||
_session->mtp()->ping();
|
||||
}
|
||||
|
||||
void Updates::addActiveChat(rpl::producer<PeerData*> chat) {
|
||||
|
@@ -7,10 +7,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "mtproto/mtproto_rpc_sender.h"
|
||||
#include "data/data_pts_waiter.h"
|
||||
#include "base/timer.h"
|
||||
|
||||
class RPCError;
|
||||
class ApiWrap;
|
||||
class History;
|
||||
|
||||
|
Reference in New Issue
Block a user