mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 20:23:19 +00:00
Fix bug where username wasn't synced to ContactRecord.
This commit is contained in:
@@ -105,11 +105,11 @@ public final class StorageSyncHelper {
|
||||
}
|
||||
|
||||
public static SignalStorageRecord buildAccountRecord(@NonNull Context context, @NonNull Recipient self) {
|
||||
RecipientTable recipientTable = SignalDatabase.recipients();
|
||||
RecipientRecord record = recipientTable.getRecordForSync(self.getId());
|
||||
List<RecipientRecord> pinned = Stream.of(SignalDatabase.threads().getPinnedRecipientIds())
|
||||
.map(recipientTable::getRecordForSync)
|
||||
.toList();
|
||||
RecipientTable recipientTable = SignalDatabase.recipients();
|
||||
RecipientRecord record = recipientTable.getRecordForSync(self.getId());
|
||||
List<RecipientRecord> pinned = Stream.of(SignalDatabase.threads().getPinnedRecipientIds())
|
||||
.map(recipientTable::getRecordForSync)
|
||||
.toList();
|
||||
|
||||
final OptionalBool storyViewReceiptsState = SignalStore.storyValues().getViewedReceiptsEnabled() ? OptionalBool.ENABLED
|
||||
: OptionalBool.DISABLED;
|
||||
|
||||
@@ -127,6 +127,7 @@ public final class StorageSyncModels {
|
||||
.setHideStory(hideStory)
|
||||
.setUnregisteredTimestamp(recipient.getSyncExtras().getUnregisteredTimestamp())
|
||||
.setHidden(recipient.isHidden())
|
||||
.setUsername(recipient.getUsername())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user