mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:07:46 +00:00
Respect option selected in note to self
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user