mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Clear callbacks async in MTP::Instance.
Also fix previous build.
This commit is contained in:
@@ -270,7 +270,9 @@ private:
|
||||
};
|
||||
|
||||
struct RPCCallbackClear {
|
||||
RPCCallbackClear(mtpRequestId id = 0, int32 code = RPCError::NoError) : requestId(id), errorCode(code) {
|
||||
RPCCallbackClear(mtpRequestId id , int32 code = RPCError::NoError)
|
||||
: requestId(id)
|
||||
, errorCode(code) {
|
||||
}
|
||||
|
||||
mtpRequestId requestId;
|
||||
@@ -278,8 +280,6 @@ struct RPCCallbackClear {
|
||||
|
||||
};
|
||||
|
||||
using RPCCallbackClears = QVector<RPCCallbackClear> ;
|
||||
|
||||
template <typename TReturn>
|
||||
inline RPCDoneHandlerPtr rpcDone(TReturn (*onDone)(const mtpPrime *, const mtpPrime *)) { // done(from, end)
|
||||
return RPCDoneHandlerPtr(new RPCDoneHandlerBare<TReturn>(onDone));
|
||||
|
Reference in New Issue
Block a user