Added setting to hide SMS invite button in contact details

This commit is contained in:
Sylvain Berfini 2022-07-25 15:45:17 +02:00
parent 2933a014c1
commit 6eed295c5c
2 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,7 @@ class ContactNumberOrAddressData(
val typeLabel: String = "",
private val listener: ContactNumberOrAddressClickListener
) {
val showInvite = !hasPresence && !isSip
val showInvite = !hasPresence && !isSip && corePreferences.showContactInviteBySms
val chatAllowed = !corePreferences.disableChat

View file

@ -469,6 +469,9 @@ class CorePreferences constructor(private val context: Context) {
val showAllRingtones: Boolean
get() = config.getBool("app", "show_all_available_ringtones", false)
val showContactInviteBySms: Boolean
get() = config.getBool("app", "show_invite_contact_by_sms", true)
/* Default values related */
val echoCancellerCalibration: Int