Fixes incorrect appearing of sms icon in group chat interface.

cusax-fix
Yana Stamcheva 14 years ago
parent 97881c2224
commit bee005ce7a

@ -248,7 +248,9 @@ private void initSmsLabel(final JPanel centerPanel)
.getImage("service.gui.icons.SEND_SMS_SELECTED");
smsLabel = new JLabel(smsIcon);
smsLabel.setVisible(true);
// We hide the sms label until we know if the chat supports sms.
smsLabel.setVisible(false);
smsMenuItem = new JCheckBoxMenuItem(GuiActivator.getResources()
.getI18NString("service.gui.VIA_SMS"));

@ -104,13 +104,7 @@ public boolean allowsInstantMessage()
*/
public boolean allowsSmsMessage()
{
Object smsOpSet = adHocChatRoom.getParentProvider()
.getOperationSet(OperationSetSmsMessaging.class);
if (smsOpSet != null)
return true;
else
return false;
return false;
}
/**

@ -103,13 +103,7 @@ public boolean allowsInstantMessage()
*/
public boolean allowsSmsMessage()
{
Object smsOpSet = chatRoom.getParentProvider()
.getOperationSet(OperationSetSmsMessaging.class);
if (smsOpSet != null)
return true;
else
return false;
return false;
}
/**

Loading…
Cancel
Save