Hide join group call for inactive groups.

This commit is contained in:
Alan Evans
2020-12-08 14:44:21 -04:00
committed by Greyson Parrelli
parent 944a180b68
commit 3949f4fd45
4 changed files with 72 additions and 38 deletions

View File

@@ -22,11 +22,11 @@ public final class GroupCallPeekEvent {
return groupRecipientId;
}
public boolean hasActiveCall() {
public boolean isOngoing() {
return eraId != null && deviceCount > 0;
}
public boolean canJoinCall() {
return hasActiveCall() && deviceCount < deviceLimit;
public boolean callHasCapacity() {
return isOngoing() && deviceCount < deviceLimit;
}
}