aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/muc
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-08-21 22:56:27 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-08-21 22:56:27 +0200
commit9be99cdeb2941dcc987fa939ad3ebd55a6d54507 (patch)
tree7fd2e35d5970e5078586dcfb30996534af81a0b8 /src/net/java/sip/communicator/service/muc
parent29953c199f846bb485ada88dec0a427dfe213f52 (diff)
downloadjitsi-9be99cdeb2941dcc987fa939ad3ebd55a6d54507.zip
jitsi-9be99cdeb2941dcc987fa939ad3ebd55a6d54507.tar.gz
jitsi-9be99cdeb2941dcc987fa939ad3ebd55a6d54507.tar.bz2
Modified default chat room auto-open behaviour to OPEN_ON_MESSAGE.
Diffstat (limited to 'src/net/java/sip/communicator/service/muc')
-rw-r--r--src/net/java/sip/communicator/service/muc/MUCService.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/service/muc/MUCService.java b/src/net/java/sip/communicator/service/muc/MUCService.java
index 8b5b9da..1fb75bf 100644
--- a/src/net/java/sip/communicator/service/muc/MUCService.java
+++ b/src/net/java/sip/communicator/service/muc/MUCService.java
@@ -27,6 +27,11 @@ public abstract class MUCService
= "net.java.sip.communicator.impl.muc.MUC_SERVICE_DISABLED";
/**
+ * Key for auto-open configuration entry.
+ */
+ private static String AUTO_OPEN_CONFIG_KEY = "openAutomatically";
+
+ /**
* The value for chat room configuration property to open automatically on
* activity
*/
@@ -45,6 +50,11 @@ public abstract class MUCService
public static String OPEN_ON_IMPORTANT_MESSAGE = "on_important_message";
/**
+ * The default for chat room auto-open behaviour.
+ */
+ public static String DEFAULT_AUTO_OPEN_BEHAVIOUR = OPEN_ON_MESSAGE;
+
+ /**
* Map for the auto open configuration values and their text representation
*/
public static Map<String, String> autoOpenConfigValuesTexts
@@ -73,7 +83,7 @@ public abstract class MUCService
{
ConfigurationUtils.updateChatRoomProperty(
pps,
- chatRoomId, "openAutomatically", value);
+ chatRoomId, AUTO_OPEN_CONFIG_KEY, value);
}
/**
@@ -88,7 +98,7 @@ public abstract class MUCService
{
return ConfigurationUtils.getChatRoomProperty(
pps,
- chatRoomId, "openAutomatically");
+ chatRoomId, AUTO_OPEN_CONFIG_KEY);
}
/**