mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 10:04:23 +01:00
@@ -84,13 +84,18 @@ public class LegacyRecipientStore2 {
|
||||
}).collect(Collectors.toMap(Recipient::getRecipientId, r -> r));
|
||||
|
||||
recipientStore.addLegacyRecipients(recipients);
|
||||
Files.delete(file.toPath());
|
||||
} catch (FileNotFoundException e) {
|
||||
// nothing to migrate
|
||||
} catch (IOException e) {
|
||||
logger.warn("Failed to load recipient store", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
try {
|
||||
Files.delete(file.toPath());
|
||||
} catch (IOException e) {
|
||||
logger.warn("Failed to load recipient store", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private record Storage(List<Recipient> recipients, long lastId) {
|
||||
|
||||
@@ -52,6 +52,10 @@ public class LegacySenderKeySharedStore {
|
||||
}
|
||||
|
||||
senderKeyStore.addLegacySenderKeysShared(sharedSenderKeys);
|
||||
} catch (IOException e) {
|
||||
logger.info("Failed to load shared sender key store, ignoring", e);
|
||||
}
|
||||
try {
|
||||
Files.delete(file.toPath());
|
||||
} catch (IOException e) {
|
||||
logger.info("Failed to load shared sender key store, ignoring", e);
|
||||
|
||||
Reference in New Issue
Block a user