~samwhited/xmpp

4ed8b790530c89d9d12cd6d67ad1742fbc2b9e7a — Sam Whited 3 months ago ed4b6c2
paging: ensure index is an attribute

Signed-off-by: Sam Whited <sam@samwhited.com>
2 files changed, 2 insertions(+), 1 deletions(-)

M CHANGELOG.md
M paging/types.go
M CHANGELOG.md => CHANGELOG.md +1 -0
@@ 52,6 52,7 @@ All notable changes to this project will be documented in this file.
  panics
- form: unmarshaling into an existing form now resets the stored values to
  prevent data leaks across forms
- paging: when unmarshaling sets, index is an attribute, not a child element
- roster: the roster version is now always included, even if empty, to signal
  that we support roster versioning
- roster: the handler now responds with an IQ result if the roster `Push`

M paging/types.go => paging/types.go +1 -1
@@ 155,7 155,7 @@ type Set struct {
	XMLName xml.Name `xml:"http://jabber.org/protocol/rsm set"`
	First   struct {
		ID    string  `xml:",cdata"`
		Index *uint64 `xml:"index,omitempty"`
		Index *uint64 `xml:"index,attr,omitempty"`
	} `xml:"first"`
	Last  string  `xml:"last"`
	Count *uint64 `xml:"count,omitempty"`