mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
refactor: use just the storage setExpirationConfiguration function
This commit is contained in:
parent
019a86482a
commit
2d0c4399c4
@ -505,7 +505,7 @@ open class Storage(
|
||||
setExpirationConfiguration(currentExpiration)
|
||||
} else {
|
||||
val expiration = ExpirationConfiguration(ourThread, userProfile.getNtsExpiry(), messageTimestamp)
|
||||
DatabaseComponent.get(context).expirationConfigurationDatabase().setExpirationConfiguration(expiration)
|
||||
setExpirationConfiguration(expiration)
|
||||
}
|
||||
}
|
||||
|
||||
@ -648,9 +648,7 @@ open class Storage(
|
||||
val newConfig = ExpirationConfiguration(
|
||||
conversationThreadId, mode, messageTimestamp
|
||||
)
|
||||
DatabaseComponent.get(context)
|
||||
.expirationConfigurationDatabase()
|
||||
.setExpirationConfiguration(newConfig)
|
||||
setExpirationConfiguration(newConfig)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user