mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Support sync state API
This commit is contained in:
parent
cbaf7d1ada
commit
acd46e3d42
@ -291,7 +291,7 @@ typedef enum {
|
|||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}/* else if (response.object->get_id() == tonlib_api::updateSyncState::ID) {
|
} else if (response.object->get_id() == tonlib_api::updateSyncState::ID) {
|
||||||
auto result = tonlib_api::move_object_as<tonlib_api::updateSyncState>(response.object);
|
auto result = tonlib_api::move_object_as<tonlib_api::updateSyncState>(response.object);
|
||||||
if (result.sync_state_->get_id() == tonlib_api::syncStateInProgress::ID) {
|
if (result.sync_state_->get_id() == tonlib_api::syncStateInProgress::ID) {
|
||||||
auto syncStateInProgress = tonlib_api::move_object_as<tonlib_api::syncStateInProgress>(result.sync_state_);
|
auto syncStateInProgress = tonlib_api::move_object_as<tonlib_api::syncStateInProgress>(result.sync_state_);
|
||||||
@ -307,7 +307,7 @@ typedef enum {
|
|||||||
syncStateUpdated(1.0f);
|
syncStateUpdated(1.0f);
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}*/
|
}
|
||||||
NSNumber *requestId = @(response.id);
|
NSNumber *requestId = @(response.id);
|
||||||
[requestHandlersLock lock];
|
[requestHandlersLock lock];
|
||||||
TONRequestHandler *handler = requestHandlers[requestId];
|
TONRequestHandler *handler = requestHandlers[requestId];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user