powered by Jive Software

Support for 'urn:xmpp:mam:2' in Smack?


#1

Hi,

I’m requesting the XMPP message archive with Smack 4.3.0-rc1 from our chat server using the MamManager class.
The problem is that the server ignores the start time and delivers all messages to us.
The message that is sent by Smack looks fine:

<iq id='0BezS-23' type='set'>
	<query xmlns='urn:xmpp:mam:1' queryid='9af64244-dbe5-462f-9ba4-7df959dd095b'>
		<x xmlns='jabber:x:data' type='submit'>
			<field var='FORM_TYPE' type='hidden'>
				<value>urn:xmpp:mam:1</value>
			</field>
			<field var='start'>
				<value>2018-06-09T22:00:00.000+00:00</value>
			</field>
		</x>
	</query>
</iq>

However, it uses ‘urn:xmpp:mam:1’ instead of ‘urn:xmpp:mam:2’ as defined in the newest version of XEP-313.
In all other clients (Windows and iOS) we use ‘urn:xmpp:mam:2’.
So I assume that our chat server might behave differently (wrongly) with version 1.
Is it possible to change this to ‘urn:xmpp:mam:2’ or make it changable?

Regards,
Thomas


#2

Certainly, but it is not a priority right now. I am happy however, to add transparent support for mam:2 to MamManager as contract work as part of my Professional Services offer. Feel free to contact me if you are interested.