Be more consistent with 'self' in StorageSyncJob.
This commit is contained in:
parent
6c7848b750
commit
b41989de03
1 changed files with 3 additions and 1 deletions
|
@ -317,7 +317,9 @@ public class StorageSyncJob extends BaseJob {
|
||||||
|
|
||||||
db.beginTransaction();
|
db.beginTransaction();
|
||||||
try {
|
try {
|
||||||
List<StorageId> localStorageIds = getAllLocalStorageIds(context, Recipient.self().fresh());
|
self = Recipient.self().fresh();
|
||||||
|
|
||||||
|
List<StorageId> localStorageIds = getAllLocalStorageIds(context, self);
|
||||||
IdDifferenceResult idDifference = StorageSyncHelper.findIdDifference(remoteManifest.getStorageIds(), localStorageIds);
|
IdDifferenceResult idDifference = StorageSyncHelper.findIdDifference(remoteManifest.getStorageIds(), localStorageIds);
|
||||||
List<SignalStorageRecord> remoteInserts = buildLocalStorageRecords(context, self, idDifference.getLocalOnlyIds());
|
List<SignalStorageRecord> remoteInserts = buildLocalStorageRecords(context, self, idDifference.getLocalOnlyIds());
|
||||||
List<byte[]> remoteDeletes = Stream.of(idDifference.getRemoteOnlyIds()).map(StorageId::getRaw).toList();
|
List<byte[]> remoteDeletes = Stream.of(idDifference.getRemoteOnlyIds()).map(StorageId::getRaw).toList();
|
||||||
|
|
Loading…
Add table
Reference in a new issue