Fix a bug with checking if user is already in a call

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-13 07:18:04 +02:00
parent 4308633509
commit 09dfd42bb7

View File

@ -155,10 +155,10 @@ public class CallNotificationController extends BaseController {
if (participant.getUserId().equals(userBeingCalled.getUserId())) { if (participant.getUserId().equals(userBeingCalled.getUserId())) {
inCallOnDifferentDevice = true; inCallOnDifferentDevice = true;
}
break; break;
} }
} }
}
if (!hasParticipantsInCall || inCallOnDifferentDevice) { if (!hasParticipantsInCall || inCallOnDifferentDevice) {
if (getActivity() != null) { if (getActivity() != null) {