diff options
author | Damian Minkov <damencho@jitsi.org> | 2014-03-10 11:25:24 +0200 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2014-03-10 11:32:12 +0200 |
commit | 220bcbf20bf84c9e7ad2dc2d06ef19fe93a394b8 (patch) | |
tree | b7b2f72d9ef685762421817a965a050733b9925e /src | |
parent | 5a2c4c531e401a80e9257bb3342ac20ed8f388f1 (diff) | |
download | jitsi-220bcbf20bf84c9e7ad2dc2d06ef19fe93a394b8.zip jitsi-220bcbf20bf84c9e7ad2dc2d06ef19fe93a394b8.tar.gz jitsi-220bcbf20bf84c9e7ad2dc2d06ef19fe93a394b8.tar.bz2 |
Adds property to enable sending sms to all numbers.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java | 20 |
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) { |