|
|
|
@ -26,6 +26,11 @@ public abstract class MUCService
|
|
|
|
public static final String DISABLED_PROPERTY
|
|
|
|
public static final String DISABLED_PROPERTY
|
|
|
|
= "net.java.sip.communicator.impl.muc.MUC_SERVICE_DISABLED";
|
|
|
|
= "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
|
|
|
|
* The value for chat room configuration property to open automatically on
|
|
|
|
* activity
|
|
|
|
* activity
|
|
|
|
@ -44,6 +49,11 @@ public abstract class MUCService
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static String OPEN_ON_IMPORTANT_MESSAGE = "on_important_message";
|
|
|
|
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
|
|
|
|
* Map for the auto open configuration values and their text representation
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -73,7 +83,7 @@ public static void setChatRoomAutoOpenOption(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ConfigurationUtils.updateChatRoomProperty(
|
|
|
|
ConfigurationUtils.updateChatRoomProperty(
|
|
|
|
pps,
|
|
|
|
pps,
|
|
|
|
chatRoomId, "openAutomatically", value);
|
|
|
|
chatRoomId, AUTO_OPEN_CONFIG_KEY, value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -88,7 +98,7 @@ public static String getChatRoomAutoOpenOption(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return ConfigurationUtils.getChatRoomProperty(
|
|
|
|
return ConfigurationUtils.getChatRoomProperty(
|
|
|
|
pps,
|
|
|
|
pps,
|
|
|
|
chatRoomId, "openAutomatically");
|
|
|
|
chatRoomId, AUTO_OPEN_CONFIG_KEY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|