We are using an open source project that uses Strophe js to connect and send xmpp messages for Instant Messaging and Group Chat. I would like to know how we can incorporate Message Edit/Delete feature using Strophe.
according to XEP-0308, we can replace a sent message by this stanza.
<message to='juliet@capulet.net/balcony' id='good1'>
<body>But soft, what light through yonder window breaks?</body>
<replace id='bad1' xmlns='urn:xmpp:message-correct:0'/>
</message>
To do that, we need message ID that has been sent. How can I get that "id" to create this stanza and replace with edited Text?
Thank you.