aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-30 03:29:41 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-30 03:29:41 +0300
commit501c1a7daa44843b1c43502167750bbb3465555d (patch)
treee0a38d2a8699cec81d81d274681c328c86bdefa7 /xmpp/handlers.go
parent5628a15ac496d72c840a265c3dace720e2547728 (diff)
Add IMPP to vCard4
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r--xmpp/handlers.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 1222a93..1d8f2bd 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -421,6 +421,14 @@ func makeVCardPayload(typ byte, id, fn, photo, nickname, given, family, tel, inf
Content: nickname,
},
},
+ }, stanza.Node{
+ XMLName: xml.Name{Local: "impp"},
+ Nodes: []stanza.Node{
+ stanza.Node{
+ XMLName: xml.Name{Local: "uri"},
+ Content: "https://t.me/" + nickname,
+ },
+ },
})
}
if family != "" || given != "" {