Respect option selected in note to self

This commit is contained in:
andrew
2023-08-27 01:24:41 +09:30
parent 6602f1bd14
commit 97f28fd2e5
2 changed files with 19 additions and 13 deletions

View File

@@ -1,8 +1,12 @@
package network.loki.messenger.libsession_util.util
import kotlin.time.Duration.Companion.seconds
sealed class ExpiryMode(val expirySeconds: Long) {
object NONE: ExpiryMode(0)
class Legacy(seconds: Long): ExpiryMode(seconds) // after read
class AfterSend(seconds: Long): ExpiryMode(seconds)
class AfterRead(seconds: Long): ExpiryMode(seconds)
}
val duration get() = expirySeconds.seconds
}