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);
|
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];
|
NSMutableArray *result = [[NSMutableArray alloc] init];
|
||||||
for (auto &it : levels) {
|
for (auto &it : levels.updates) {
|
||||||
[result addObject:@(it.first)];
|
[result addObject:@(it.ssrc)];
|
||||||
[result addObject:@(it.second.first)];
|
[result addObject:@(it.value.level)];
|
||||||
[result addObject:@(it.second.second)];
|
[result addObject:@(it.value.voice)];
|
||||||
}
|
}
|
||||||
audioLevelsUpdated(result);
|
audioLevelsUpdated(result);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user