mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +00:00
Fix non-sms messages not deserialisable by kryo
This commit is contained in:
parent
84e92e186b
commit
181dd15028
@ -4,9 +4,9 @@ import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
sealed class ExpiryMode(val expirySeconds: Long) {
|
||||
object NONE: ExpiryMode(0)
|
||||
data class Legacy(private val seconds: Long): ExpiryMode(seconds)
|
||||
data class AfterSend(private val seconds: Long): ExpiryMode(seconds)
|
||||
data class AfterRead(private val seconds: Long): ExpiryMode(seconds)
|
||||
data class Legacy(private val seconds: Long = 0L): ExpiryMode(seconds)
|
||||
data class AfterSend(private val seconds: Long = 0L): ExpiryMode(seconds)
|
||||
data class AfterRead(private val seconds: Long = 0L): ExpiryMode(seconds)
|
||||
|
||||
val duration get() = expirySeconds.seconds
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user