Add gift badges to user capabilities

This commit is contained in:
Ehren Kret 2022-04-29 11:08:36 -05:00
parent 364e59be57
commit 578ea12b59
1 changed files with 12 additions and 2 deletions

View File

@ -17,7 +17,8 @@ public class UserCapabilities {
account.isSenderKeySupported(), account.isSenderKeySupported(),
account.isAnnouncementGroupSupported(), account.isAnnouncementGroupSupported(),
account.isChangeNumberSupported(), account.isChangeNumberSupported(),
account.isStoriesSupported()); account.isStoriesSupported(),
account.isGiftBadgesSupported());
} }
@JsonProperty @JsonProperty
@ -38,6 +39,9 @@ public class UserCapabilities {
@JsonProperty @JsonProperty
private boolean stories; private boolean stories;
@JsonProperty
private boolean giftBadges;
public UserCapabilities() { public UserCapabilities() {
} }
@ -46,7 +50,8 @@ public class UserCapabilities {
final boolean senderKey, final boolean senderKey,
final boolean announcementGroup, final boolean announcementGroup,
final boolean changeNumber, final boolean changeNumber,
final boolean stories) { final boolean stories,
final boolean giftBadges) {
this.gv2 = gv2; this.gv2 = gv2;
this.gv1Migration = gv1Migration; this.gv1Migration = gv1Migration;
@ -54,6 +59,7 @@ public class UserCapabilities {
this.announcementGroup = announcementGroup; this.announcementGroup = announcementGroup;
this.changeNumber = changeNumber; this.changeNumber = changeNumber;
this.stories = stories; this.stories = stories;
this.giftBadges = giftBadges;
} }
public boolean isGv2() { public boolean isGv2() {
@ -79,4 +85,8 @@ public class UserCapabilities {
public boolean isStories() { public boolean isStories() {
return stories; return stories;
} }
public boolean isGiftBadges() {
return giftBadges;
}
} }