mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Fix follow setting visible in groups
This commit is contained in:
parent
1339c60d06
commit
c8377b0e30
@ -18,6 +18,7 @@ import org.session.libsession.messaging.messages.ExpirationConfiguration
|
|||||||
import org.thoughtcrime.securesms.conversation.disappearingmessages.DisappearingMessages
|
import org.thoughtcrime.securesms.conversation.disappearingmessages.DisappearingMessages
|
||||||
import org.thoughtcrime.securesms.conversation.disappearingmessages.expiryMode
|
import org.thoughtcrime.securesms.conversation.disappearingmessages.expiryMode
|
||||||
import org.thoughtcrime.securesms.database.model.MessageRecord
|
import org.thoughtcrime.securesms.database.model.MessageRecord
|
||||||
|
import org.thoughtcrime.securesms.dependencies.DatabaseComponent
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
||||||
@AndroidEntryPoint
|
@AndroidEntryPoint
|
||||||
@ -57,6 +58,7 @@ class ControlMessageView : LinearLayout {
|
|||||||
followSetting.isVisible = ExpirationConfiguration.isNewConfigEnabled
|
followSetting.isVisible = ExpirationConfiguration.isNewConfigEnabled
|
||||||
&& !message.isOutgoing
|
&& !message.isOutgoing
|
||||||
&& message.expiryMode != (MessagingModuleConfiguration.shared.storage.getExpirationConfiguration(message.threadId)?.expiryMode ?: ExpiryMode.NONE)
|
&& message.expiryMode != (MessagingModuleConfiguration.shared.storage.getExpirationConfiguration(message.threadId)?.expiryMode ?: ExpiryMode.NONE)
|
||||||
|
&& DatabaseComponent.get(context).threadDatabase().getRecipientForThreadId(message.threadId)?.isGroupRecipient != true
|
||||||
|
|
||||||
followSetting.setOnClickListener { disappearingMessages.showFollowSettingDialog(context, message) }
|
followSetting.setOnClickListener { disappearingMessages.showFollowSettingDialog(context, message) }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user