From 1aec56b93614be493de29c34dbd47f925e079d42 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:51:15 +1100 Subject: [PATCH] feat: add new config enabled timestamp --- .../libsession/messaging/messages/ExpirationConfiguration.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/messages/ExpirationConfiguration.kt b/libsession/src/main/java/org/session/libsession/messaging/messages/ExpirationConfiguration.kt index 696f27799b..256dcf2315 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/messages/ExpirationConfiguration.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/messages/ExpirationConfiguration.kt @@ -1,6 +1,7 @@ package org.session.libsession.messaging.messages import network.loki.messenger.libsession_util.util.ExpiryMode +import org.session.libsession.snode.SnodeAPI data class ExpirationConfiguration( val threadId: Long = -1, @@ -10,7 +11,7 @@ data class ExpirationConfiguration( val isEnabled = expiryMode.expirySeconds > 0 companion object { - val isNewConfigEnabled = true /* TODO: System.currentTimeMillis() > 1_676_851_200_000 // 13/02/2023 */ + val isNewConfigEnabled = SnodeAPI.nowWithOffset >= 1710284400 } }