From 6f8be3260c47de9f53b78d18c1afad6065e1d0cd Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 11 Mar 2021 13:18:34 -0500 Subject: [PATCH] Do not mark dirty when updating profile key during storage sync. --- .../thoughtcrime/securesms/database/RecipientDatabase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java index b63de248e2..8f0bf26630 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java +++ b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientDatabase.java @@ -911,7 +911,9 @@ public class RecipientDatabase extends Database { RecipientId recipientId = getByStorageKeyOrThrow(update.getNew().getId().getRaw()); if (StorageSyncHelper.profileKeyChanged(update)) { - clearProfileKeyCredential(recipientId); + ContentValues clearValues = new ContentValues(1); + clearValues.putNull(PROFILE_KEY_CREDENTIAL); + update(recipientId, clearValues); } try {