From 2d0c4399c4de52760d8521445543fada8548f2d4 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:50:58 +1100 Subject: [PATCH] refactor: use just the storage setExpirationConfiguration function --- .../java/org/thoughtcrime/securesms/database/Storage.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt b/app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt index 85f5f8fd77..d2db4d9572 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt @@ -505,7 +505,7 @@ open class Storage( setExpirationConfiguration(currentExpiration) } else { val expiration = ExpirationConfiguration(ourThread, userProfile.getNtsExpiry(), messageTimestamp) - DatabaseComponent.get(context).expirationConfigurationDatabase().setExpirationConfiguration(expiration) + setExpirationConfiguration(expiration) } } @@ -648,9 +648,7 @@ open class Storage( val newConfig = ExpirationConfiguration( conversationThreadId, mode, messageTimestamp ) - DatabaseComponent.get(context) - .expirationConfigurationDatabase() - .setExpirationConfiguration(newConfig) + setExpirationConfiguration(newConfig) } } }