This commit is contained in:
2026-01-30 19:08:18 +00:00
parent 63ad9247bc
commit 69bee8766e
6 changed files with 55 additions and 17 deletions

View File

@@ -14,6 +14,12 @@ type VCard struct {
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
}
type VCardUpdate struct {
stanza.PresExtension
XMLName xml.Name `xml:"vcard-temp:x:update x"`
Photo string `xml:"photo"`
}
func (v *VCard) Namespace() string {
return v.XMLName.Space
}
@@ -29,4 +35,5 @@ type Photo struct {
func init() {
stanza.TypeRegistry.MapExtension(stanza.PKTIQ, xml.Name{Space: "vcard-temp", Local: "vCard"}, VCard{})
stanza.TypeRegistry.MapExtension(stanza.PKTPresence, xml.Name{Space: "vcard-temp:x:update", Local: "x"}, VCardUpdate{})
}