Do not mark dirty when updating profile key during storage sync.
This commit is contained in:
parent
e74460bd91
commit
6f8be3260c
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue