fix: actually do insert contact, because otherwise name doesn't get set properly

This commit is contained in:
0x330a 2023-07-06 11:25:31 +10:00
parent c61234afab
commit 526e0e4562
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C
1 changed files with 0 additions and 1 deletions

View File

@ -94,7 +94,6 @@ class ProfileManager(private val context: Context, private val configFactory: Co
if (contact.sessionID == TextSecurePreferences.getLocalNumber(context)) return null
val sessionId = SessionId(contact.sessionID)
if (sessionId.prefix != IdPrefix.STANDARD) return null // only internally store standard session IDs
if (contactConfig.get(contact.sessionID) == null) return null // don't insert, only update
contactConfig.upsertContact(contact.sessionID) {
this.name = contact.name.orEmpty()
this.nickname = contact.nickname.orEmpty()