mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Hide join group call for inactive groups.
This commit is contained in:
committed by
Greyson Parrelli
parent
944a180b68
commit
3949f4fd45
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user