Merge branch 'webrtc-compatibility'

This commit is contained in:
Ali 2021-04-02 21:20:00 +04:00
commit e937ca52bf
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@
#import "Instance.h"
#import "InstanceImpl.h"
#import "reference/InstanceImplReference.h"
#import "v2/InstanceV2Impl.h"
#include "StaticThreads.h"
#import "VideoCaptureInterface.h"
@ -333,7 +333,7 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
}
+ (NSArray<NSString *> * _Nonnull)versionsWithIncludeReference:(bool)__unused includeReference {
return @[@"2.7.7", @"3.0.0"];
return @[@"2.7.7", @"3.0.0", @"4.0.0"];
}
+ (tgcalls::ProtocolVersion)protocolVersionFromLibraryVersion:(NSString *)version {
@ -444,10 +444,9 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
tgcalls::Register<tgcalls::InstanceImpl>();
tgcalls::Register<tgcalls::InstanceV2Impl>();
});
_tgVoip = tgcalls::Meta::Create([version UTF8String], (tgcalls::Descriptor){
.config = config,
.persistentState = (tgcalls::PersistentState){ derivedStateValue },

@ -1 +1 @@
Subproject commit 82d6e2d5a45135458610ce03dd700143b8e92ad6
Subproject commit 7eaea3e5286afc9d911e6b1fc6d41c6cc6c3be97