Do not mark dirty when updating profile key during storage sync.

This commit is contained in:
Greyson Parrelli 2021-03-11 13:18:34 -05:00 committed by Cody Henthorne
parent e74460bd91
commit 6f8be3260c

View file

@ -911,7 +911,9 @@ public class RecipientDatabase extends Database {
RecipientId recipientId = getByStorageKeyOrThrow(update.getNew().getId().getRaw()); RecipientId recipientId = getByStorageKeyOrThrow(update.getNew().getId().getRaw());
if (StorageSyncHelper.profileKeyChanged(update)) { if (StorageSyncHelper.profileKeyChanged(update)) {
clearProfileKeyCredential(recipientId); ContentValues clearValues = new ContentValues(1);
clearValues.putNull(PROFILE_KEY_CREDENTIAL);
update(recipientId, clearValues);
} }
try { try {