From 5a1c0b9e090ef48160a5e2305d3f60f9f57066e9 Mon Sep 17 00:00:00 2001 From: eleksir Date: Sat, 24 Jun 2023 15:45:21 +0300 Subject: [PATCH] Extend DiscoResult type with ID, From and To fields --- xmpp.go | 3 +++ xmpp_disco.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/xmpp.go b/xmpp.go index 3ca0a4e..172953b 100644 --- a/xmpp.go +++ b/xmpp.go @@ -959,6 +959,9 @@ func (c *Client) Recv() (stanza interface{}, err error) { } return DiscoResult{ + ID: v.ID, + From: v.From, + To: v.To, Features: clientFeaturesToReturn(disco.Features), Identities: clientIdentitiesToReturn(disco.Identities), }, nil diff --git a/xmpp_disco.go b/xmpp_disco.go index 0bca664..4af0426 100644 --- a/xmpp_disco.go +++ b/xmpp_disco.go @@ -52,6 +52,9 @@ type DiscoItem struct { } type DiscoResult struct { + ID string + From string + To string Features []string Identities []DiscoIdentity }