Remove the from attribute from a serialized stanza's root element, so a
re-sent stanza cannot carry a stale resource after a failed resumption. Only
the root opening tag is touched; nested from attributes (forwarded stanzas,
MUC addresses) are preserved. The server stamps the authoritative c2s from.
DOM-free string surgery, mirroring stampDelay.
Parameters
serialized: string
The serialized stanza.
Returns string
The stanza with the root from removed (unchanged if none).
Remove the
fromattribute from a serialized stanza's root element, so a re-sent stanza cannot carry a stale resource after a failed resumption. Only the root opening tag is touched; nestedfromattributes (forwarded stanzas, MUC addresses) are preserved. The server stamps the authoritative c2sfrom. DOM-free string surgery, mirroring stampDelay.