mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Remove off option from one-to-one conversation expiration settings
This commit is contained in:
parent
820354d451
commit
cc8fdb58dd
@ -66,8 +66,12 @@ class ExpirationSettingsViewModel(
|
||||
ExpirationType.DELETE_AFTER_READ -> afterReadOptions
|
||||
else -> emptyList()
|
||||
}
|
||||
}.onEach {
|
||||
_expirationTimerOptions.value = it
|
||||
}.onEach { options ->
|
||||
_expirationTimerOptions.value = if (recipient.value?.isLocalNumber == true || recipient.value?.isClosedGroupRecipient == true) {
|
||||
options
|
||||
} else {
|
||||
options.slice(1 until options.size)
|
||||
}
|
||||
}.launchIn(viewModelScope)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user