mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 22:04:24 +01:00
only show delete and keep options for moderators of a conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
5512a47d32
commit
3007633873
@ -1246,6 +1246,16 @@ class ChatActivity :
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ConversationUtils.isParticipantOwnerOrModerator(currentConversation!!)) {
|
||||||
|
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.delete_now_button).visibility =
|
||||||
|
View.VISIBLE
|
||||||
|
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.keep_button).visibility = View.VISIBLE
|
||||||
|
}else{
|
||||||
|
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.delete_now_button).visibility =
|
||||||
|
View.GONE
|
||||||
|
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.keep_button).visibility = View.GONE
|
||||||
|
|
||||||
|
}
|
||||||
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.delete_now_button).setOnClickListener {
|
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.delete_now_button).setOnClickListener {
|
||||||
deleteConversationDialog(it.context)
|
deleteConversationDialog(it.context)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user