mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-25 13:58:29 +00:00
Ensure we refresh recipients after changing storage keys.
This commit is contained in:
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…
x
Reference in New Issue
Block a user