Fixes offline messaging to contact which just went offline

We should still use the old implementation for checking offline contacts
capabilities. This will give us the 'offline capabilities' e.g.
messaging offline contacts.
smack4
Timur Masar 11 years ago
parent 5767731219
commit 79efc958b0

@ -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