powered by Jive Software

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



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'>
			<field var='start'>

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?



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.