mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Fix migration of legacy recipient storage
This commit is contained in:
parent
ae652b1294
commit
a3bc754e80
3 changed files with 9 additions and 6 deletions
|
@ -98,9 +98,9 @@ public class LegacyRecipientStore2 {
|
|||
}
|
||||
}
|
||||
|
||||
private record Storage(List<Recipient> recipients, long lastId) {
|
||||
public record Storage(List<Recipient> recipients, long lastId) {
|
||||
|
||||
private record Recipient(
|
||||
public record Recipient(
|
||||
long id,
|
||||
String number,
|
||||
String uuid,
|
||||
|
@ -110,7 +110,7 @@ public class LegacyRecipientStore2 {
|
|||
Profile profile
|
||||
) {
|
||||
|
||||
private record Contact(
|
||||
public record Contact(
|
||||
String name,
|
||||
String color,
|
||||
int messageExpirationTime,
|
||||
|
@ -119,7 +119,7 @@ public class LegacyRecipientStore2 {
|
|||
boolean profileSharingEnabled
|
||||
) {}
|
||||
|
||||
private record Profile(
|
||||
public record Profile(
|
||||
long lastUpdateTimestamp,
|
||||
String givenName,
|
||||
String familyName,
|
||||
|
|
|
@ -61,8 +61,8 @@ public class LegacySenderKeySharedStore {
|
|||
}
|
||||
}
|
||||
|
||||
private record Storage(List<SharedSenderKey> sharedSenderKeys) {
|
||||
public record Storage(List<SharedSenderKey> sharedSenderKeys) {
|
||||
|
||||
private record SharedSenderKey(long recipientId, int deviceId, String distributionId) {}
|
||||
public record SharedSenderKey(long recipientId, int deviceId, String distributionId) {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue