Skip to content

Commit

Permalink
Ensure we refresh recipients after changing storage keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal authored and alan-signal committed Oct 6, 2020
1 parent 474963d commit 599cf1e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,10 @@ public void applyStorageIdUpdates(@NonNull Map<RecipientId, StorageId> storageId
} finally {
db.endTransaction();
}

for (RecipientId id : storageIds.keySet()) {
Recipient.live(id).refresh();
}
}

public void applyStorageSyncUpdates(@NonNull Collection<SignalContactRecord> contactInserts,
Expand Down Expand Up @@ -2172,6 +2176,10 @@ public void updateStorageKeys(@NonNull Map<RecipientId, byte[]> keys) {
} finally {
db.endTransaction();
}

for (RecipientId id : keys.keySet()) {
Recipient.live(id).refresh();
}
}

public void clearDirtyState(@NonNull List<RecipientId> recipients) {
Expand Down

0 comments on commit 599cf1e

Please sign in to comment.