Ensure we refresh recipients after changing storage keys.

master
Greyson Parrelli 2020-10-06 00:02:01 -04:00 committed by Alan Evans
parent 474963dcf1
commit 599cf1e5cb
1 changed files with 8 additions and 0 deletions

View File

@ -696,6 +696,10 @@ public class RecipientDatabase extends Database {
} finally {
db.endTransaction();
}
for (RecipientId id : storageIds.keySet()) {
Recipient.live(id).refresh();
}
}
public void applyStorageSyncUpdates(@NonNull Collection<SignalContactRecord> contactInserts,
@ -2172,6 +2176,10 @@ public class RecipientDatabase extends Database {
} finally {
db.endTransaction();
}
for (RecipientId id : keys.keySet()) {
Recipient.live(id).refresh();
}
}
public void clearDirtyState(@NonNull List<RecipientId> recipients) {