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
|
@ -18,6 +18,9 @@
|
||||||
{
|
{
|
||||||
"name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
|
"name":"[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name":"[Ljava.lang.Object;"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name":"[Ljava.lang.String;"
|
"name":"[Ljava.lang.String;"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
long id,
|
||||||
String number,
|
String number,
|
||||||
String uuid,
|
String uuid,
|
||||||
|
@ -110,7 +110,7 @@ public class LegacyRecipientStore2 {
|
||||||
Profile profile
|
Profile profile
|
||||||
) {
|
) {
|
||||||
|
|
||||||
private record Contact(
|
public record Contact(
|
||||||
String name,
|
String name,
|
||||||
String color,
|
String color,
|
||||||
int messageExpirationTime,
|
int messageExpirationTime,
|
||||||
|
@ -119,7 +119,7 @@ public class LegacyRecipientStore2 {
|
||||||
boolean profileSharingEnabled
|
boolean profileSharingEnabled
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
private record Profile(
|
public record Profile(
|
||||||
long lastUpdateTimestamp,
|
long lastUpdateTimestamp,
|
||||||
String givenName,
|
String givenName,
|
||||||
String familyName,
|
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