Fixed media thumbnail not appearing immediately after upload started

Fixed instant video automatic download
Fixed Passport document recognition for uploaded scans
This commit is contained in:
Ilya Laktyushin
2018-10-17 16:03:43 +03:00
parent 384cdf4a94
commit 0d41a372c9
23 changed files with 422 additions and 373 deletions

View File

@@ -287,6 +287,23 @@ static int callControllerNetworkTypeForType(OngoingCallNetworkType type) {
}
}
- (NSString *)debugInfo {
if (_controller != nil) {
auto rawDebugString = _controller->GetDebugString();
return [NSString stringWithUTF8String:rawDebugString.c_str()];
} else {
return nil;
}
}
- (NSString *)version {
if (_controller != nil) {
return [NSString stringWithUTF8String:_controller->GetVersion()];
} else {
return nil;
}
}
- (void)controllerStateChanged:(int)state {
OngoingCallState callState = OngoingCallStateInitializing;
switch (state) {