ref: 52be89df867be9fc4e8ba83b0c3880887a6485ba xmpp/presence.go -rw-r--r-- 2.2 KiB
Send IDs for presences and messages too

Only send IDs if one isn't already set (for all stanzas)
Test to make sure we don't accidentally mutate stanzas
Workaround for Go issue #16497

Remove Stanza struct (it was pointless)

At first I thought it would be useful when creating Nonzas, but they're
not likely to actually share any properties with stanzas since they're
not routable.
Export the Stanza type
Refactor stanzas out into their own files