]> nmode's Git Repositories - signal-cli/commitdiff
Read configurations from storage
authorAsamK <asamk@gmx.de>
Sun, 3 Oct 2021 11:14:43 +0000 (13:14 +0200)
committerAsamK <asamk@gmx.de>
Sun, 3 Oct 2021 11:37:27 +0000 (13:37 +0200)
lib/src/main/java/org/asamk/signal/manager/helper/StorageHelper.java

index 4caab5194c6ea7e0e9e8afa424165c49a470242d..63e6ca5980350c2a662712e24b6fe7f0cc8a1dae 100644 (file)
@@ -188,6 +188,12 @@ public class StorageHelper {
             return;
         }
 
+        account.getConfigurationStore().setReadReceipts(accountRecord.isReadReceiptsEnabled());
+        account.getConfigurationStore().setTypingIndicators(accountRecord.isTypingIndicatorsEnabled());
+        account.getConfigurationStore()
+                .setUnidentifiedDeliveryIndicators(accountRecord.isSealedSenderIndicatorsEnabled());
+        account.getConfigurationStore().setLinkPreviews(accountRecord.isLinkPreviewsEnabled());
+
         if (accountRecord.getProfileKey().isPresent()) {
             try {
                 account.setProfileKey(new ProfileKey(accountRecord.getProfileKey().get()));