Fix ExpSettingsViewModel

This commit is contained in:
andrew 2023-08-21 12:11:27 +09:30
parent d6dd7a82f1
commit 60f396a158

View File

@ -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