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 {
// SETUP
viewModelScope.launch {
expirationConfig = storage.getExpirationConfiguration(threadId)?.let {
if (ExpirationConfiguration.isNewConfigEnabled) it
else if (it)
}
expirationConfig = storage.getExpirationConfiguration(threadId)
val expirationType = expirationConfig?.expiryMode
val recipient = threadDb.getRecipientForThreadId(threadId)
_recipient.value = recipient