android - How to get DiscussionHistory for MultiUserChat room using aSmack? -
how discussionhistory of muc room multiuserchat? able create multiuserchat instance , room using asmack library, want show previous conversations happened in room.
anybody experienced in same please me. google searched lot still did't proper documentation / explanation on this.
discussionhistory history = new discussionhistory(); history.setsince(date); muc.join(nickname, null, history, smackconfiguration.getreplytimeout()); // historical message; message oldmsg = muc.nextmessage(timeout); you can use
history.setmaxchars() history.setmaxstanzas() history.setseconds() some examples in test code. check test testdiscussionhistory.
Comments
Post a Comment