no message

This commit is contained in:
overtake 2020-12-29 20:49:12 +03:00
parent 83e0c1250e
commit ab78cae91e

View File

@ -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);
}, },