uhh
This commit is contained in:
@@ -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{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user