mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
check capability conversation-creation-all
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
df7e772817
commit
b4a9910fd3
@ -901,7 +901,9 @@ class ConversationInfoActivity :
|
||||
binding.sharedItems.visibility = GONE
|
||||
}
|
||||
|
||||
if (conversation!!.type == ConversationEnums.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL) {
|
||||
if (conversation!!.type == ConversationEnums.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL &&
|
||||
hasSpreedFeatureCapability(spreedCapabilities, SpreedFeatures.CONVERSATION_CREATION_ALL)
|
||||
) {
|
||||
binding.addParticipantsAction.visibility = GONE
|
||||
binding.startGroupChat.visibility = VISIBLE
|
||||
} else if (ConversationUtils.canModerate(conversationCopy, spreedCapabilities)) {
|
||||
|
@ -56,7 +56,8 @@ enum class SpreedFeatures(val value: String) {
|
||||
DELETE_MESSAGES_UNLIMITED("delete-messages-unlimited"),
|
||||
BAN_V1("ban-v1"),
|
||||
EDIT_MESSAGES_NOTE_TO_SELF("edit-messages-note-to-self"),
|
||||
ARCHIVE_CONVERSATIONS("archived-conversations-v2")
|
||||
ARCHIVE_CONVERSATIONS("archived-conversations-v2"),
|
||||
CONVERSATION_CREATION_ALL("conversation-creation-all")
|
||||
}
|
||||
|
||||
@Suppress("TooManyFunctions")
|
||||
|
Loading…
Reference in New Issue
Block a user