aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/util
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2014-03-28 17:10:12 +0200
committerDamian Minkov <damencho@jitsi.org>2014-03-28 17:10:12 +0200
commit8a0c43ff788124b2a14757aff65da5ce2e883061 (patch)
treeaa15c834f5f19ad45e8994aa1cb05d5d8163be68 /src/net/java/sip/communicator/util
parent4b029078c7744c9dfb633fd5ad52596d887e6891 (diff)
downloadjitsi-8a0c43ff788124b2a14757aff65da5ce2e883061.zip
jitsi-8a0c43ff788124b2a14757aff65da5ce2e883061.tar.gz
jitsi-8a0c43ff788124b2a14757aff65da5ce2e883061.tar.bz2
Adds a property to disable text displaying for some incoming and outgoing type of messages.
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r--src/net/java/sip/communicator/util/ConfigurationUtils.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/ConfigurationUtils.java b/src/net/java/sip/communicator/util/ConfigurationUtils.java
index b8c8568..dc5cf47 100644
--- a/src/net/java/sip/communicator/util/ConfigurationUtils.java
+++ b/src/net/java/sip/communicator/util/ConfigurationUtils.java
@@ -325,6 +325,18 @@ public class ConfigurationUtils
".HIDE_ADDRESS_IN_CALL_HISTORY_TOOLTIP_ENABLED";
/**
+ * Texts to notify that sms has been sent or sms has been received.
+ */
+ private static boolean isSmsNotifyTextDisabled = false;
+
+ /**
+ * To disable displaying sms delivered message or sms received.
+ */
+ private static final String SMS_MSG_NOTIFY_TEXT_DISABLED_PROP
+ = "net.java.sip.communicator.impl.gui.main.contactlist."
+ + "SMS_MSG_NOTIFY_TEXT_DISABLED_PROP";
+
+ /**
* Whether domain will be shown in receive call dialog.
*/
private static boolean isHideDomainInReceivedCallDialogEnabled = false;
@@ -925,6 +937,11 @@ public class ConfigurationUtils
hideExtendedAwayStatus = configService.getBoolean(
hideExtendedAwayStatusProperty,
hideExtendedAwayStatus);
+
+ isSmsNotifyTextDisabled = configService.getBoolean(
+ SMS_MSG_NOTIFY_TEXT_DISABLED_PROP,
+ isSmsNotifyTextDisabled
+ );
}
/**
@@ -1801,6 +1818,16 @@ public class ConfigurationUtils
}
/**
+ * Whether to display or not the text notifying that a message is
+ * a incoming or outgoing sms message.
+ * @return whether to display the text notifying that a message is sms.
+ */
+ public static boolean isSmsNotifyTextDisabled()
+ {
+ return isSmsNotifyTextDisabled;
+ }
+
+ /**
* Whether domain will be shown in receive call dialog.
* @return whether domain will be shown in receive call dialog.
*/