mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Fix ExpSettingsViewModel
This commit is contained in:
parent
d6dd7a82f1
commit
60f396a158
@ -58,10 +58,7 @@ class ExpirationSettingsViewModel(
|
|||||||
init {
|
init {
|
||||||
// SETUP
|
// SETUP
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
expirationConfig = storage.getExpirationConfiguration(threadId)?.let {
|
expirationConfig = storage.getExpirationConfiguration(threadId)
|
||||||
if (ExpirationConfiguration.isNewConfigEnabled) it
|
|
||||||
else if (it)
|
|
||||||
}
|
|
||||||
val expirationType = expirationConfig?.expiryMode
|
val expirationType = expirationConfig?.expiryMode
|
||||||
val recipient = threadDb.getRecipientForThreadId(threadId)
|
val recipient = threadDb.getRecipientForThreadId(threadId)
|
||||||
_recipient.value = recipient
|
_recipient.value = recipient
|
||||||
|
Loading…
x
Reference in New Issue
Block a user