mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge branch 'temp'
This commit is contained in:
commit
36752e8483
@ -835,12 +835,12 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
|
||||
networkStateUpdated(isConnected ? GroupCallNetworkStateConnected : GroupCallNetworkStateConnecting);
|
||||
}];
|
||||
},
|
||||
.audioLevelsUpdated = [audioLevelsUpdated](std::vector<std::pair<uint32_t, std::pair<float, bool>>> const &levels) {
|
||||
.audioLevelsUpdated = [audioLevelsUpdated](tgcalls::GroupLevelsUpdate const &levels) {
|
||||
NSMutableArray *result = [[NSMutableArray alloc] init];
|
||||
for (auto &it : levels) {
|
||||
[result addObject:@(it.first)];
|
||||
[result addObject:@(it.second.first)];
|
||||
[result addObject:@(it.second.second)];
|
||||
for (auto &it : levels.updates) {
|
||||
[result addObject:@(it.ssrc)];
|
||||
[result addObject:@(it.value.level)];
|
||||
[result addObject:@(it.value.voice)];
|
||||
}
|
||||
audioLevelsUpdated(result);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user