mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-25 06:47:25 +00:00
feat: adding a force new configs flag and logic for timestamp handling / forced configs, fix issue with handling legacy messages
This commit is contained in:
@@ -25,7 +25,11 @@ sealed class ConfigBase(protected val /* yucky */ pointer: Long) {
|
||||
is UserGroupsConfig -> Kind.GROUPS
|
||||
}
|
||||
|
||||
const val isNewConfigEnabled = true
|
||||
// TODO: time in future to activate (hardcoded to 1st jan 2024 for testing, change before release)
|
||||
private const val ACTIVATE_TIME = 1704027600
|
||||
|
||||
fun isNewConfigEnabled(forced: Boolean, currentTime: Long) =
|
||||
forced || currentTime >= ACTIVATE_TIME
|
||||
|
||||
const val PRIORITY_HIDDEN = -1
|
||||
const val PRIORITY_VISIBLE = 0
|
||||
|
||||
Reference in New Issue
Block a user