Added setting to hide SMS invite button in contact details
This commit is contained in:
parent
2933a014c1
commit
6eed295c5c
2 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,7 @@ class ContactNumberOrAddressData(
|
||||||
val typeLabel: String = "",
|
val typeLabel: String = "",
|
||||||
private val listener: ContactNumberOrAddressClickListener
|
private val listener: ContactNumberOrAddressClickListener
|
||||||
) {
|
) {
|
||||||
val showInvite = !hasPresence && !isSip
|
val showInvite = !hasPresence && !isSip && corePreferences.showContactInviteBySms
|
||||||
|
|
||||||
val chatAllowed = !corePreferences.disableChat
|
val chatAllowed = !corePreferences.disableChat
|
||||||
|
|
||||||
|
|
|
@ -469,6 +469,9 @@ class CorePreferences constructor(private val context: Context) {
|
||||||
val showAllRingtones: Boolean
|
val showAllRingtones: Boolean
|
||||||
get() = config.getBool("app", "show_all_available_ringtones", false)
|
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 */
|
/* Default values related */
|
||||||
|
|
||||||
val echoCancellerCalibration: Int
|
val echoCancellerCalibration: Int
|
||||||
|
|
Loading…
Reference in a new issue