mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Do not mark dirty when updating profile key during storage sync.
This commit is contained in:
committed by
Cody Henthorne
parent
e74460bd91
commit
6f8be3260c
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user