mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 03:21:29 +00:00
Support updated tgcalls
This commit is contained in:
parent
d22703638d
commit
b2670425d4
@ -7,6 +7,7 @@
|
||||
#import "Instance.h"
|
||||
#import "InstanceImpl.h"
|
||||
#import "reference/InstanceImplReference.h"
|
||||
#include "StaticThreads.h"
|
||||
|
||||
#import "VideoCaptureInterface.h"
|
||||
|
||||
@ -158,7 +159,7 @@
|
||||
if (keepLandscape) {
|
||||
resolvedId += std::string(":landscape");
|
||||
}
|
||||
_interface = tgcalls::VideoCaptureInterface::Create(resolvedId);
|
||||
_interface = tgcalls::VideoCaptureInterface::Create(tgcalls::StaticThreads::getThreads(), resolvedId);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@ -863,6 +864,7 @@ private:
|
||||
|
||||
__weak GroupCallThreadLocalContext *weakSelf = self;
|
||||
_instance.reset(new tgcalls::GroupInstanceCustomImpl((tgcalls::GroupInstanceDescriptor){
|
||||
.threads = tgcalls::StaticThreads::getThreads(),
|
||||
.networkStateUpdated = [weakSelf, queue, networkStateUpdated](tgcalls::GroupNetworkState networkState) {
|
||||
[queue dispatch:^{
|
||||
__strong GroupCallThreadLocalContext *strongSelf = weakSelf;
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 943d24ab5c86d2e4d739e82234b4d14210433ca0
|
||||
Subproject commit 4a953747375b8648f8b66e9572b59b10f7b769a1
|
||||
Loading…
x
Reference in New Issue
Block a user