mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:21:10 +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 {
|
} finally {
|
||||||
db.endTransaction();
|
db.endTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (RecipientId id : storageIds.keySet()) {
|
||||||
|
Recipient.live(id).refresh();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void applyStorageSyncUpdates(@NonNull Collection<SignalContactRecord> contactInserts,
|
public void applyStorageSyncUpdates(@NonNull Collection<SignalContactRecord> contactInserts,
|
||||||
@@ -2172,6 +2176,10 @@ public class RecipientDatabase extends Database {
|
|||||||
} finally {
|
} finally {
|
||||||
db.endTransaction();
|
db.endTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (RecipientId id : keys.keySet()) {
|
||||||
|
Recipient.live(id).refresh();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearDirtyState(@NonNull List<RecipientId> recipients) {
|
public void clearDirtyState(@NonNull List<RecipientId> recipients) {
|
||||||
|
Reference in New Issue
Block a user