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{
|
return DiscoResult{
|
||||||
|
ID: v.ID,
|
||||||
|
From: v.From,
|
||||||
|
To: v.To,
|
||||||
Features: clientFeaturesToReturn(disco.Features),
|
Features: clientFeaturesToReturn(disco.Features),
|
||||||
Identities: clientIdentitiesToReturn(disco.Identities),
|
Identities: clientIdentitiesToReturn(disco.Identities),
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ type DiscoItem struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DiscoResult struct {
|
type DiscoResult struct {
|
||||||
|
ID string
|
||||||
|
From string
|
||||||
|
To string
|
||||||
Features []string
|
Features []string
|
||||||
Identities []DiscoIdentity
|
Identities []DiscoIdentity
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user