mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 23:47:26 +00:00
Ensure we refresh recipients after changing storage keys.
This commit is contained in:

committed by
Alan Evans

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) {
|
||||
|
Reference in New Issue
Block a user