From 7ae2adca9fd39f533ddf06d9e3891a95c4474a2f Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Tue, 23 Jan 2018 09:10:10 +0100 Subject: [PATCH] Adds support for error element on message and presence --- message.go | 1 + presence.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/message.go b/message.go index be3d758..92e7446 100644 --- a/message.go +++ b/message.go @@ -14,6 +14,7 @@ type Message struct { Subject string `xml:"subject,omitempty"` Body string `xml:"body,omitempty"` Thread string `xml:"thread,omitempty"` + Error Err `xml:"error,omitempty"` } func (Message) Name() string { diff --git a/presence.go b/presence.go index d079f49..c5dec66 100644 --- a/presence.go +++ b/presence.go @@ -11,7 +11,7 @@ type Presence struct { Show string `xml:"show,attr,omitempty"` // away, chat, dnd, xa Status string `xml:"status,attr,omitempty"` Priority string `xml:"priority,attr,omitempty"` - //Error *clientError + Error Err `xml:"error,omitempty"` } func (Presence) Name() string {