From 501c1a7daa44843b1c43502167750bbb3465555d Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Wed, 29 Jun 2022 20:29:41 -0400 Subject: [PATCH] Add IMPP to vCard4 --- xmpp/handlers.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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 != "" {