aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
index bf9ac6e..c1fc57a 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
@@ -174,6 +174,12 @@ public class ChatPanel
protected ChatConferenceCallDialog chatConferencesDialog = null;
/**
+ * Whether to use all numbers when sending sms, or just the mobiles.
+ */
+ private static final String USE_ADDITIONAL_NUMBERS_PROP
+ = "service.gui.IS_SEND_SMS_USING_ADDITIONAL_NUMBERS";
+
+ /**
* Creates a <tt>ChatPanel</tt> which is added to the given chat window.
*
* @param chatContainer The parent window of this chat panel.
@@ -1675,8 +1681,18 @@ public class ChatPanel
UIPhoneUtil contactPhoneUtil =
UIPhoneUtil.getPhoneUtil((MetaContact) desc);
- List<UIContactDetail> uiContactDetailList =
- contactPhoneUtil.getAdditionalMobileNumbers();
+ List<UIContactDetail> uiContactDetailList;
+
+ boolean useAllNumbers =
+ GuiActivator.getConfigurationService().getBoolean(
+ USE_ADDITIONAL_NUMBERS_PROP, false);
+
+ if(useAllNumbers)
+ uiContactDetailList
+ = contactPhoneUtil.getAdditionalNumbers();
+ else
+ uiContactDetailList
+ = contactPhoneUtil.getAdditionalMobileNumbers();
if(uiContactDetailList.size() != 0)
{