mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
Pick correct config on receive message
This commit is contained in:
parent
b0447cf342
commit
29099901d1
@ -310,9 +310,9 @@ fun MessageReceiver.updateExpiryIfNeeded(
|
|||||||
storage.updateDisappearingState(threadID, disappearingState)
|
storage.updateDisappearingState(threadID, disappearingState)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localConfig != null || localConfig!!) {
|
remoteConfig.takeIf { localConfig == null || it.updatedTimestampMs > localConfig.updatedTimestampMs }
|
||||||
storage.setExpirationConfiguration(remoteConfig)
|
?.let(storage::setExpirationConfiguration)
|
||||||
}
|
|
||||||
|
|
||||||
if (message is ExpirationTimerUpdate) {
|
if (message is ExpirationTimerUpdate) {
|
||||||
SSKEnvironment.shared.messageExpirationManager.setExpirationTimer(message, type?.expiryMode(durationSeconds.toLong()))
|
SSKEnvironment.shared.messageExpirationManager.setExpirationTimer(message, type?.expiryMode(durationSeconds.toLong()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user