Fix bug where default reactions were dropped in AccountRecord.

This commit is contained in:
Greyson Parrelli 2023-09-08 19:40:09 -04:00
parent 8595863afe
commit b367701a96

View file

@ -50,7 +50,7 @@ public final class SignalAccountRecord implements SignalRecord {
this.avatarUrlPath = OptionalUtil.absentIfEmpty(proto.avatarUrlPath); this.avatarUrlPath = OptionalUtil.absentIfEmpty(proto.avatarUrlPath);
this.pinnedConversations = new ArrayList<>(proto.pinnedConversations.size()); this.pinnedConversations = new ArrayList<>(proto.pinnedConversations.size());
this.payments = new Payments(proto.payments.enabled, OptionalUtil.absentIfEmpty(proto.payments.entropy)); this.payments = new Payments(proto.payments.enabled, OptionalUtil.absentIfEmpty(proto.payments.entropy));
this.defaultReactions = new ArrayList<>(proto.preferredReactionEmoji.size()); this.defaultReactions = new ArrayList<>(proto.preferredReactionEmoji);
this.subscriber = new Subscriber(proto.subscriberCurrencyCode, proto.subscriberId.toByteArray()); this.subscriber = new Subscriber(proto.subscriberCurrencyCode, proto.subscriberId.toByteArray());
for (AccountRecord.PinnedConversation conversation : proto.pinnedConversations) { for (AccountRecord.PinnedConversation conversation : proto.pinnedConversations) {