Fix migration of legacy recipient storage

This commit is contained in:
AsamK 2023-05-16 22:50:27 +02:00
parent ae652b1294
commit a3bc754e80
3 changed files with 9 additions and 6 deletions

View file

@ -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;"
}, },

View file

@ -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,

View file

@ -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) {}
} }
} }