From 730a5694cc592b33e9aea3c1366e41309b4784a6 Mon Sep 17 00:00:00 2001 From: Ivan Sein Date: Wed, 16 Jan 2019 18:18:01 +0100 Subject: [PATCH] Fix getInCallSessionsFromUsersInRoom function. Signed-off-by: Ivan Sein --- VideoCalls/NCCallController.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/VideoCalls/NCCallController.m b/VideoCalls/NCCallController.m index 55d3cb3c..edd246d2 100644 --- a/VideoCalls/NCCallController.m +++ b/VideoCalls/NCCallController.m @@ -532,17 +532,11 @@ static NSString * const kNCVideoTrackKind = @"video"; for (NSMutableDictionary *user in users) { NSString *sessionId = [user objectForKey:@"sessionId"]; BOOL inCall = [[user objectForKey:@"inCall"] boolValue]; - - // Ignore app user sessionId - if ([_userSessionId isEqualToString:sessionId]) { - continue; - } - - // Only add session that are in the call - if (inCall) { + if (inCall && ![_userSessionId isEqualToString:sessionId]) { [sessions addObject:sessionId]; } } + NSLog(@"InCall sessions: %@", sessions); return sessions; }