Use participantFlags

This commit is contained in:
Mario Danic 2018-11-07 10:04:10 +01:00
parent f797f10047
commit 5398d17295
2 changed files with 4 additions and 1 deletions

View File

@ -216,7 +216,7 @@ public class CallNotificationController extends BaseController {
boolean inCallOnDifferentDevice = false;
List<Participant> participantList = participantsOverall.getOcs().getData();
for (Participant participant : participantList) {
if (participant.isInCall()) {
if (participant.isInCall() || (userBeingCalled.hasSpreedCapabilityWithName("in-call-flags") && participant.getParticipantFlags() != 0)) {
hasParticipantsInCall = true;
if (participant.getUserId().equals(userBeingCalled.getUserId())) {

View File

@ -52,6 +52,9 @@ public class Participant {
@JsonField(name = "inCall")
boolean inCall;
@JsonField(name = "participantFlags")
int participantFlags;
String source;
public enum ParticipantType {