Skip to content

Commit 416f844

Browse files
authored
Merge pull request #1777 from nextcloud/retry-join-call-on-404
Try to forceReconnect on 404 when joining call
2 parents 13860ce + 6b48089 commit 416f844

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

NextcloudTalk/NCCallController.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,15 @@ - (void)joinCall
208208
if (self->_joinCallAttempts < 3) {
209209
NSLog(@"Could not join call, retrying. %ld", (long)self->_joinCallAttempts);
210210
self->_joinCallAttempts += 1;
211-
[self joinCall];
211+
212+
if (statusCode == 404) {
213+
// The conversation was not correctly joined by us / our session expired
214+
// Instead of joining again, try to reconnect to correctly join the conversation again
215+
[self forceReconnect];
216+
} else {
217+
[self joinCall];
218+
}
219+
212220
return;
213221
}
214222

0 commit comments

Comments
 (0)