xmpp - Openfire ConversationID has changed after logout -
i'm developing chat app use xmppframework , openfire server. when (usn2) send message usn1, message has been created in ofmessagearchieve conversationid. after logout , login again, when chat, new conversation has created (see image below), want add message exist conversation. how can this?
code send message:
let msg = xmppmessage(type: "chat", to: xmppjid.jidwithstring(getjidfromname(stateid))) msg.addbody(message) msg.addattributewithname("id", stringvalue: stream.generateuuid()) stream.sendelement(msg)
although changed openfire @shoaib ahmad gondal suggested. still happens
messageid , conversationid not same. messageid generates each message send conversationid generates based on users & session(maybe). keep them same have modify message archive plugin or develop new one.
Comments
Post a Comment