Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
joelhess #1
Member since Dec 2016 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Support for XEP-0313 (Message Archive Management)
I'm trying to use MAM on an ejabberd Server for storing/retrieving Archived Messages.  Is this expected to be supported in the Matrix Library? I need to issue a query like this:
  1. <iq type='set' id='juliet1'>
  2.  <query xmlns='urn:xmpp:mam:1' queryid='f27' />
  3. </iq>

I can't find anything in the matrix library that uses that xmlns.

Thanks,
Joel Hess
This post was edited on 2016-12-01, 17:39 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This extensions is experimental, thats why its not coded yet in MatriX. Experimental XEPs can still change a lot.

Just build your classes as described here:
http://www.ag-software.net/matrix-xmpp-sdk/matrix-develope…

  1. public class MamQuery : XmppXElement
  2. {  
  3.     public MamQuery() : base("urn:xmpp:mam:1", "query")
  4.     {
  5.     }
  6.  
  7.     public string QueryId
  8.     {
  9.         get { return GetAttribute("queryid"); }
  10.         set { SetAttribute("queryid", value); }
  11.     }
  12. }
  13.  
  14. var mamQuery = new IqQuery<MamQuery>(){ Type = Matrix.Xmpp.IqType.Set };
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: