mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-16 17:25:01 +01:00
solve detekt issues
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
c5abe75a25
commit
142c362474
@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Nextcloud Talk application
|
||||||
|
*
|
||||||
|
* @author Marcel Hibbe
|
||||||
|
* Copyright (C) 2022 Marcel Hibbe <dev@mhibbe.de>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
package com.nextcloud.talk.controllers.bottomsheet
|
package com.nextcloud.talk.controllers.bottomsheet
|
||||||
|
|
||||||
enum class ConversationOperationEnum {
|
enum class ConversationOperationEnum {
|
||||||
|
@ -128,10 +128,10 @@ class ConversationsListBottomDialog(
|
|||||||
)
|
)
|
||||||
|
|
||||||
binding.conversationOperationLeave.visibility = setVisibleIf(
|
binding.conversationOperationLeave.visibility = setVisibleIf(
|
||||||
conversation.canLeave()
|
conversation.canLeave() &&
|
||||||
// leaving is by api not possible for the last user with moderator permissions.
|
// leaving is by api not possible for the last user with moderator permissions.
|
||||||
// for now, hide this option for all moderators.
|
// for now, hide this option for all moderators.
|
||||||
&& !conversation.canModerate(currentUser)
|
!conversation.canModerate(currentUser)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user