Search code examples
xmppopenfiresmack

Openfire sends empty (without stamp attr) jabber:x:delay extension to smack


I receive offline message from openfire server, but it contains empty jabber:x:delay extension.

The message I receive is:

<message id="qU7N8-64" to="[email protected]" from="[email protected]/4847791" type="chat">
      <body>test message</body>
      <delay xmlns="urn:xmpp:delay"></delay>
      <x xmlns="jabber:x:delay"></x>
</message>

This message I receive with smack library.

But when I connect to openfire with Miranda IM, openfire sends extension jabber:x:delay with data.

Why openfire sends empty jabber:x:delay only to smack library?


Solution

  • Add this line after connection.

    ProviderManager.getInstance()addExtensionProvider("x","jabber:x:delay", new DelayInformationProvider());