mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-23 08:27:30 +00:00
feat: add new config enabled timestamp
This commit is contained in:
parent
a4c99799a2
commit
c2ab92e14d
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user