fix: don't enable expiring messages in not approvedMe conversations

This commit is contained in:
Harris 2022-03-17 13:31:25 +11:00
parent c6cf7a24d7
commit ad5911e247

View File

@ -58,7 +58,7 @@ object ConversationMenuHelper {
// Base menu (options that should always be present)
inflater.inflate(R.menu.menu_conversation, menu)
// Expiring messages
if (!isOpenGroup) {
if (!isOpenGroup && thread.hasApprovedMe()) {
if (thread.expireMessages > 0) {
inflater.inflate(R.menu.menu_conversation_expiration_on, menu)
val item = menu.findItem(R.id.menu_expiring_messages)