mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Use participantFlags
This commit is contained in:
parent
f797f10047
commit
5398d17295
@ -216,7 +216,7 @@ public class CallNotificationController extends BaseController {
|
|||||||
boolean inCallOnDifferentDevice = false;
|
boolean inCallOnDifferentDevice = false;
|
||||||
List<Participant> participantList = participantsOverall.getOcs().getData();
|
List<Participant> participantList = participantsOverall.getOcs().getData();
|
||||||
for (Participant participant : participantList) {
|
for (Participant participant : participantList) {
|
||||||
if (participant.isInCall()) {
|
if (participant.isInCall() || (userBeingCalled.hasSpreedCapabilityWithName("in-call-flags") && participant.getParticipantFlags() != 0)) {
|
||||||
hasParticipantsInCall = true;
|
hasParticipantsInCall = true;
|
||||||
|
|
||||||
if (participant.getUserId().equals(userBeingCalled.getUserId())) {
|
if (participant.getUserId().equals(userBeingCalled.getUserId())) {
|
||||||
|
@ -52,6 +52,9 @@ public class Participant {
|
|||||||
@JsonField(name = "inCall")
|
@JsonField(name = "inCall")
|
||||||
boolean inCall;
|
boolean inCall;
|
||||||
|
|
||||||
|
@JsonField(name = "participantFlags")
|
||||||
|
int participantFlags;
|
||||||
|
|
||||||
String source;
|
String source;
|
||||||
|
|
||||||
public enum ParticipantType {
|
public enum ParticipantType {
|
||||||
|
Loading…
Reference in New Issue
Block a user