updated to 22.0.2
This commit is contained in:
parent
7fbf1db963
commit
df332bafd8
19 changed files with 75 additions and 175 deletions
|
|
@ -27,11 +27,11 @@ object ConversationUtils {
|
|||
Participant.ParticipantType.GUEST_MODERATOR == conversation.participantType ||
|
||||
Participant.ParticipantType.MODERATOR == conversation.participantType
|
||||
|
||||
fun isLockedOneToOne(conversation: ConversationModel, spreedCapabilities: SpreedCapability): Boolean =
|
||||
fun isLockedOneToOne(conversation: ConversationModel, spreedCapabilities: SpreedCapability?): Boolean =
|
||||
conversation.type == ConversationEnums.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL &&
|
||||
CapabilitiesUtil.hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.LOCKED_ONE_TO_ONE)
|
||||
|
||||
fun canModerate(conversation: ConversationModel, spreedCapabilities: SpreedCapability): Boolean =
|
||||
fun canModerate(conversation: ConversationModel, spreedCapabilities: SpreedCapability?): Boolean =
|
||||
isParticipantOwnerOrModerator(conversation) &&
|
||||
!isLockedOneToOne(conversation, spreedCapabilities) &&
|
||||
conversation.type != ConversationEnums.ConversationType.FORMER_ONE_TO_ONE &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue