mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-12 10:49:45 +00:00
fix: activate the banner only if conversation is in expiring mode not none
This commit is contained in:
@@ -1791,7 +1791,9 @@ open class Storage(
|
||||
val recipientDb = DatabaseComponent.get(context).recipientDatabase()
|
||||
recipientDb.setDisappearingState(recipient, disappearingState);
|
||||
val currentLegacyRecipient = lokiDb.getLastLegacySenderAddress(recipientAddress)
|
||||
val currentExpiry = getExpirationConfiguration(threadID)
|
||||
if (disappearingState == DisappearingState.LEGACY
|
||||
&& currentExpiry?.isEnabled == true
|
||||
&& ExpirationConfiguration.isNewConfigEnabled) { // only set "this person is legacy" if new config enabled
|
||||
lokiDb.setLastLegacySenderAddress(recipientAddress, messageSender)
|
||||
} else if (messageSender == currentLegacyRecipient) {
|
||||
|
Reference in New Issue
Block a user