Merge pull request #184 from 459below/fix-callbutton

Fixes the contacts 'message button' disappearing on offline contacts
smack4
Ingo Bauersachs 10 years ago
commit e0681895c8

@ -489,7 +489,8 @@ public void userCapsNodeChanged(String user, ArrayList<String> fullJids,
if(JabberActivator.getConfigurationService()
.getBoolean(
PROP_XMPP_USE_ALL_RESOURCES_FOR_CAPABILITIES,
USE_ALL_RESOURCES_FOR_CAPABILITIES_DEFAULT))
USE_ALL_RESOURCES_FOR_CAPABILITIES_DEFAULT)
&& !fullJids.isEmpty())
{
String bareJid = StringUtils.parseBareAddress(user);
Contact contact = opsetPresence.findContactByID(bareJid);
@ -570,7 +571,7 @@ public void fireContactCapabilitiesChanged(String user,
.getBoolean(
PROP_XMPP_USE_ALL_RESOURCES_FOR_CAPABILITIES,
USE_ALL_RESOURCES_FOR_CAPABILITIES_DEFAULT)
||fullJids.isEmpty())
|| fullJids.isEmpty())
{
OperationSetPresence opsetPresence
= parentProvider.getOperationSet(OperationSetPresence.class);

Loading…
Cancel
Save