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) 

enter image description here

although changed openfire @shoaib ahmad gondal suggested. still happens enter image description here

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

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -