~samwhited/xmpp

ref: c94affac9a18822271ea609cc1f1e3d79e0b49cb xmpp/stanza/presence.go -rw-r--r-- 2.8 KiB
stanza: add available presence pseudo-type

Also fix stanza tests
stanza: make attrs on presence optional
xmpp: use new JID API
all: update copyright message

[ci skip]
stanza: omitempty on IQ to attr
stanza: fix comment on PresenceType
stanza: simplify Presence type
stanza: remove innerxml fields from stanzas

Fixes #36
stanza: move stanza functionality into new package
Remove broken stanza correctness enforcement

I'm not sure where this will go yet; maybe on a new "Client" type
(*sigh*)? It needs to work differently either way.
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

https://golang.org/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
Next