~samwhited/xmpp

ref: f049ab8dabe39d7cf5b125095ce050d2bfd2c6fd xmpp/stanza/presence.go -rw-r--r-- 2.9 KiB
all: remove unnecessary pointer in WrapPresence

And while we're testing the new API, clean up existing tests.
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