Merge remote-tracking branch 'origin/dev' into closed_groups

# Conflicts:
#	app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
This commit is contained in:
SessionHero01 2024-10-10 13:56:05 +11:00
commit 7175a3121c
No known key found for this signature in database

View File

@ -1658,8 +1658,11 @@ open class Storage @Inject constructor(
if (recipient.isLocalNumber || !recipient.isContactRecipient) return
configFactory.withMutableUserConfigs {
it.contacts.upsertContact(recipient.address.serialize()) {
// if the contact wasn't approved before but is approved now, make sure it's visible
if(approved && !this.approved) this.priority = PRIORITY_VISIBLE
// update approval
this.approved = approved
this.priority = PRIORITY_VISIBLE
}
}
}