diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index ad512479a..a585d5253 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -1246,15 +1246,14 @@ class ChatActivity : ) } - if(ConversationUtils.isParticipantOwnerOrModerator(currentConversation!!)) { + if (ConversationUtils.isParticipantOwnerOrModerator(currentConversation!!)) { binding.conversationDeleteNotice.findViewById(R.id.delete_now_button).visibility = View.VISIBLE binding.conversationDeleteNotice.findViewById(R.id.keep_button).visibility = View.VISIBLE - }else{ + } else { binding.conversationDeleteNotice.findViewById(R.id.delete_now_button).visibility = View.GONE binding.conversationDeleteNotice.findViewById(R.id.keep_button).visibility = View.GONE - } binding.conversationDeleteNotice.findViewById(R.id.delete_now_button).setOnClickListener { deleteConversationDialog(it.context)