From e1cb9ac0379b5822b3e645a9d10939dfd38e2043 Mon Sep 17 00:00:00 2001 From: Theo McGinley Date: Sat, 9 Feb 2019 14:18:37 +0000 Subject: [PATCH] Parse show, status, and priority of presence stanzas as child elements instead of attributes --- presence.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presence.go b/presence.go index 0ec6b6a..0cadeaf 100644 --- a/presence.go +++ b/presence.go @@ -8,9 +8,9 @@ import "encoding/xml" type Presence struct { XMLName xml.Name `xml:"presence"` PacketAttrs - Show string `xml:"show,attr,omitempty"` // away, chat, dnd, xa - Status string `xml:"status,attr,omitempty"` - Priority string `xml:"priority,attr,omitempty"` + Show string `xml:"show,omitempty"` // away, chat, dnd, xa + Status string `xml:"status,omitempty"` + Priority string `xml:"priority,omitempty"` Error Err `xml:"error,omitempty"` }