Add missing field handling in account record processor

This commit is contained in:
AsamK 2024-02-22 19:59:54 +01:00
parent 08ba774b71
commit 0bb2a64781

View file

@ -102,6 +102,8 @@ public class AccountRecordProcessor extends DefaultStorageRecordProcessor<Signal
final var storiesDisabled = remote.isStoriesDisabled(); final var storiesDisabled = remote.isStoriesDisabled();
final var hasSeenGroupStoryEducation = remote.hasSeenGroupStoryEducationSheet() final var hasSeenGroupStoryEducation = remote.hasSeenGroupStoryEducationSheet()
|| local.hasSeenGroupStoryEducationSheet(); || local.hasSeenGroupStoryEducationSheet();
boolean hasSeenUsernameOnboarding = remote.hasCompletedUsernameOnboarding()
|| local.hasCompletedUsernameOnboarding();
final var username = remote.getUsername(); final var username = remote.getUsername();
final var usernameLink = remote.getUsernameLink(); final var usernameLink = remote.getUsernameLink();
@ -131,6 +133,7 @@ public class AccountRecordProcessor extends DefaultStorageRecordProcessor<Signal
.setHasViewedOnboardingStory(hasViewedOnboardingStory) .setHasViewedOnboardingStory(hasViewedOnboardingStory)
.setStoriesDisabled(storiesDisabled) .setStoriesDisabled(storiesDisabled)
.setHasSeenGroupStoryEducationSheet(hasSeenGroupStoryEducation) .setHasSeenGroupStoryEducationSheet(hasSeenGroupStoryEducation)
.setHasCompletedUsernameOnboarding(hasSeenUsernameOnboarding)
.setStoryViewReceiptsState(storyViewReceiptsState) .setStoryViewReceiptsState(storyViewReceiptsState)
.setUsername(username) .setUsername(username)
.setUsernameLink(usernameLink) .setUsernameLink(usernameLink)