Skip to content

Commit

Permalink
Fix reading nickname from storage record
Browse files Browse the repository at this point in the history
Fixes #1664
  • Loading branch information
AsamK committed Jan 14, 2025
1 parent cbd9265 commit 7a25ae5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,12 @@ protected void updateLocal(StorageRecordUpdate<SignalContactRecord> update) thro
.withGivenName(nullIfEmpty(contactProto.systemGivenName))
.withFamilyName(nullIfEmpty(contactProto.systemFamilyName))
.withNickName(nullIfEmpty(contactProto.systemNickname))
.withNickNameGivenName(nullIfEmpty(contactProto.givenName))
.withNickNameFamilyName(nullIfEmpty(contactProto.familyName))
.withNickNameGivenName(nullIfEmpty(contactProto.nickname == null
? null
: contactProto.nickname.given))
.withNickNameFamilyName(nullIfEmpty(contactProto.nickname == null
? null
: contactProto.nickname.family))
.withNote(nullIfEmpty(contactProto.note))
.withUnregisteredTimestamp(contactProto.unregisteredAtTimestamp == 0
? null
Expand Down

0 comments on commit 7a25ae5

Please sign in to comment.