From 9d0b5586352c726c35b46b16b25c1120f0eb2096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Tue, 21 Jan 2025 19:58:51 +0100 Subject: [PATCH] fix: Only query "getPeersInCall" when using internal signaling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- NextcloudTalk/NCCallController.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NextcloudTalk/NCCallController.m b/NextcloudTalk/NCCallController.m index f11325cc4..0f5e00de0 100644 --- a/NextcloudTalk/NCCallController.m +++ b/NextcloudTalk/NCCallController.m @@ -197,7 +197,6 @@ - (void)joinCall [NCUtils log:[NSString stringWithFormat:@"Did join call in NCCallController for token %@", self.room.token]]; [self.delegate callControllerDidJoinCall:self]; - [self getPeersForCall]; [self startMonitoringMicrophoneAudioLevel]; if (self->_externalSignalingController) { @@ -205,6 +204,8 @@ - (void)joinCall [self createPublisherPeerConnection]; } } else { + // Only with internal signaling we need to query the API for peers in call + [self getPeersForCall]; [self->_signalingController startPullingSignalingMessages]; } @@ -820,7 +821,7 @@ - (void)checkMicAudioLevel }]; } -#pragma mark - Call participants +#pragma mark - Call participants (internal signaling) - (void)getPeersForCall { @@ -1506,7 +1507,7 @@ - (void)processUsersInRoom:(NSArray *)users // Calculate sessions that join the call [newSessions removeObjectsInArray:oldSessions]; - if (newSessions.count > 0) { + if (newSessions.count > 0 && !_externalSignalingController) { [self getPeersForCall]; }