aboutsummaryrefslogtreecommitdiff
path: root/xmpp/extensions/extensions.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-29 16:56:27 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-29 16:56:27 +0300
commit38ffdb9e4791652b09d59643c8e0b200c2566e1c (patch)
treefd64275dd2144b350b49e0fef9a998008bb204db /xmpp/extensions/extensions.go
parent76ac66236612315860538a73334e6c7d10c7c4b4 (diff)
Retrieve Bio / Description for vCard desc / note
Diffstat (limited to 'xmpp/extensions/extensions.go')
-rw-r--r--xmpp/extensions/extensions.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmpp/extensions/extensions.go b/xmpp/extensions/extensions.go
index 878770a..fac5e7b 100644
--- a/xmpp/extensions/extensions.go
+++ b/xmpp/extensions/extensions.go
@@ -32,6 +32,7 @@ type IqVcardTemp struct {
N IqVcardN
Tel IqVcardTel
Photo IqVcardPhoto
+ Desc IqVcardDesc
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
}
@@ -104,6 +105,12 @@ type IqVcardPhotoBinval struct {
Text string `xml:",chardata"`
}
+// IqVcardDesc is vCard/DESC
+type IqVcardDesc struct {
+ XMLName xml.Name `xml:"DESC"`
+ Text string `xml:",chardata"`
+}
+
// Namespace is a namespace!
func (c PresenceNickExtension) Namespace() string {
return c.XMLName.Space