feat: add new config enabled timestamp

This commit is contained in:
0x330a 2024-02-28 17:51:15 +11:00
parent a4c99799a2
commit c2ab92e14d
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C

View File

@ -1,6 +1,7 @@
package org.session.libsession.messaging.messages package org.session.libsession.messaging.messages
import network.loki.messenger.libsession_util.util.ExpiryMode import network.loki.messenger.libsession_util.util.ExpiryMode
import org.session.libsession.snode.SnodeAPI
data class ExpirationConfiguration( data class ExpirationConfiguration(
val threadId: Long = -1, val threadId: Long = -1,
@ -10,7 +11,7 @@ data class ExpirationConfiguration(
val isEnabled = expiryMode.expirySeconds > 0 val isEnabled = expiryMode.expirySeconds > 0
companion object { companion object {
val isNewConfigEnabled = true /* TODO: System.currentTimeMillis() > 1_676_851_200_000 // 13/02/2023 */ val isNewConfigEnabled = SnodeAPI.nowWithOffset >= 171028440000
} }
} }