Extend DiscoResult type with ID, From and To fields
This commit is contained in:
3
xmpp.go
3
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
|
||||
|
||||
@@ -52,6 +52,9 @@ type DiscoItem struct {
|
||||
}
|
||||
|
||||
type DiscoResult struct {
|
||||
ID string
|
||||
From string
|
||||
To string
|
||||
Features []string
|
||||
Identities []DiscoIdentity
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user