Init Nicknames & Notes

This commit is contained in:
Jamie Kyle 2024-03-26 12:48:33 -07:00 committed by GitHub
parent ebecf2403f
commit e26916702c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 1050 additions and 23 deletions

View file

@ -206,6 +206,9 @@ export function getConversation(model: ConversationModel): ConversationType {
expireTimer: attributes.expireTimer,
muteExpiresAt: attributes.muteExpiresAt,
dontNotifyForMentionsIfMuted: attributes.dontNotifyForMentionsIfMuted,
nicknameFamilyName: dropNull(attributes.nicknameFamilyName),
nicknameGivenName: dropNull(attributes.nicknameGivenName),
note: dropNull(attributes.note),
name: attributes.name,
systemGivenName: attributes.systemGivenName,
systemFamilyName: attributes.systemFamilyName,
@ -222,6 +225,7 @@ export function getConversation(model: ConversationModel): ConversationType {
timestamp: dropNull(timestamp),
title: getTitle(attributes),
titleNoDefault: getTitleNoDefault(attributes),
titleNoNickname: getTitle(attributes, { ignoreNickname: true }),
typingContactIdTimestamps,
searchableTitle: isMe(attributes)
? window.i18n('icu:noteToSelf')