kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix bug where username wasn't synced to ContactRecord.
rodzic
ce4e84aadc
commit
4cfba86cb1
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue