Remove deprecated blocked field from DeviceContact.

This commit is contained in:
Greyson Parrelli
2024-03-12 12:15:49 -04:00
committed by Cody Henthorne
parent 0544c1f249
commit aeae6ac292
8 changed files with 2 additions and 20 deletions

View File

@@ -23,7 +23,6 @@ public class DeviceContact {
private final Optional<String> color;
private final Optional<VerifiedMessage> verified;
private final Optional<ProfileKey> profileKey;
private final boolean blocked;
private final Optional<Integer> expirationTimer;
private final Optional<Integer> inboxPosition;
private final boolean archived;
@@ -35,7 +34,6 @@ public class DeviceContact {
Optional<String> color,
Optional<VerifiedMessage> verified,
Optional<ProfileKey> profileKey,
boolean blocked,
Optional<Integer> expirationTimer,
Optional<Integer> inboxPosition,
boolean archived)
@@ -51,7 +49,6 @@ public class DeviceContact {
this.color = color;
this.verified = verified;
this.profileKey = profileKey;
this.blocked = blocked;
this.expirationTimer = expirationTimer;
this.inboxPosition = inboxPosition;
this.archived = archived;
@@ -85,10 +82,6 @@ public class DeviceContact {
return profileKey;
}
public boolean isBlocked() {
return blocked;
}
public Optional<Integer> getExpirationTimer() {
return expirationTimer;
}

View File

@@ -53,7 +53,6 @@ public class DeviceContactsInputStream extends ChunkedInputStream {
Optional<String> color = details.color != null ? Optional.of(details.color) : Optional.empty();
Optional<VerifiedMessage> verified = Optional.empty();
Optional<ProfileKey> profileKey = Optional.empty();
boolean blocked = false;
Optional<Integer> expireTimer = Optional.empty();
Optional<Integer> inboxPosition = Optional.empty();
boolean archived = false;
@@ -107,10 +106,9 @@ public class DeviceContactsInputStream extends ChunkedInputStream {
inboxPosition = Optional.of(details.inboxPosition);
}
blocked = details.blocked;
archived = details.archived;
return new DeviceContact(aci, e164, name, avatar, color, verified, profileKey, blocked, expireTimer, inboxPosition, archived);
return new DeviceContact(aci, e164, name, avatar, color, verified, profileKey, expireTimer, inboxPosition, archived);
}
}

View File

@@ -93,7 +93,6 @@ public class DeviceContactsOutputStream extends ChunkedOutputStream {
contactDetails.inboxPosition(contact.getInboxPosition().get());
}
contactDetails.blocked(contact.isBlocked());
contactDetails.archived(contact.isArchived());
byte[] serializedContactDetails = contactDetails.build().encode();