Fix system name processing in storage service

This commit is contained in:
Fedor Indutny
2026-03-12 11:57:23 -07:00
committed by GitHub
parent 6c28e066cd
commit bee5fc374a
5 changed files with 240 additions and 25 deletions

View File

@@ -15,5 +15,5 @@ export const isInSystemContacts = ({
// `direct` for redux, `private` for models and the database
(type === 'direct' || type === 'private') &&
(typeof name === 'string' ||
typeof systemGivenName === 'string' ||
typeof systemFamilyName === 'string');
(typeof systemGivenName === 'string' && systemGivenName.length > 0) ||
(typeof systemFamilyName === 'string' && systemFamilyName.length > 0));