mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
remove unused method
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
d93dd0f3c1
commit
d5ff59fcd0
@ -22,9 +22,7 @@ import com.nextcloud.talk.models.json.converters.EnumParticipantTypeConverter
|
||||
import com.nextcloud.talk.models.json.converters.EnumReadOnlyConversationConverter
|
||||
import com.nextcloud.talk.models.json.converters.EnumRoomTypeConverter
|
||||
import com.nextcloud.talk.models.json.participants.Participant.ParticipantType
|
||||
import com.nextcloud.talk.utils.SpreedFeatures
|
||||
import com.nextcloud.talk.utils.ConversationUtils
|
||||
import com.nextcloud.talk.utils.CapabilitiesUtil
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
@Parcelize
|
||||
@ -173,15 +171,6 @@ data class Conversation(
|
||||
ParticipantType.GUEST_MODERATOR == participantType ||
|
||||
ParticipantType.MODERATOR == participantType
|
||||
|
||||
@Deprecated("Use ConversationUtil")
|
||||
private fun isLockedOneToOne(conversationUser: User): Boolean {
|
||||
return type == ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL &&
|
||||
CapabilitiesUtil.hasSpreedFeatureCapability(
|
||||
conversationUser.capabilities?.spreedCapability!!,
|
||||
SpreedFeatures.LOCKED_ONE_TO_ONE_ROOMS
|
||||
)
|
||||
}
|
||||
|
||||
@Deprecated("Use ConversationUtil")
|
||||
fun canModerate(conversationUser: User): Boolean {
|
||||
return isParticipantOwnerOrModerator &&
|
||||
|
Loading…
Reference in New Issue
Block a user