Ensure we refresh recipients after changing storage keys.
parent
474963dcf1
commit
599cf1e5cb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue