mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Add contact and key sync message receive support.
This commit is contained in:
committed by
Greyson Parrelli
parent
c5028720e3
commit
c548816daa
@@ -1524,6 +1524,15 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
}
|
||||
}
|
||||
|
||||
fun setSystemContactName(id: RecipientId, systemContactName: String) {
|
||||
val values = ContentValues().apply {
|
||||
put(SYSTEM_JOINED_NAME, systemContactName)
|
||||
}
|
||||
if (update(id, values)) {
|
||||
Recipient.live(id).refresh()
|
||||
}
|
||||
}
|
||||
|
||||
fun setProfileName(id: RecipientId, profileName: ProfileName) {
|
||||
val contentValues = ContentValues(1).apply {
|
||||
put(PROFILE_GIVEN_NAME, profileName.givenName)
|
||||
|
||||
Reference in New Issue
Block a user