mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 11:57:24 +00:00
Cleanup
This commit is contained in:
@@ -14,3 +14,5 @@ sealed class ExpiryMode(val expirySeconds: Long) {
|
||||
|
||||
fun coerceSendToRead(coerce: Boolean = true) = if (coerce && this is AfterSend) AfterRead(expirySeconds) else this
|
||||
}
|
||||
|
||||
fun afterSend(seconds: Long) = seconds.takeIf { it > 0 }?.let(ExpiryMode::AfterSend) ?: ExpiryMode.NONE
|
Reference in New Issue
Block a user