Add extra fields to vCard and format code
This commit is contained in:
@@ -144,7 +144,6 @@ func loadAsset(key string, data []byte) {
|
|||||||
clientAssets[key] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
clientAssets[key] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
for key, data := range map[string][]byte{
|
for key, data := range map[string][]byte{
|
||||||
"DefaultAvatar": defaultAvatarBytes,
|
"DefaultAvatar": defaultAvatarBytes,
|
||||||
|
|||||||
@@ -127,7 +127,6 @@ var roRo = map[string]string { // Romanian (Romania)
|
|||||||
|
|
||||||
var enUS = enGB // American English
|
var enUS = enGB // American English
|
||||||
|
|
||||||
|
|
||||||
var locales = map[string]map[string]string{
|
var locales = map[string]map[string]string{
|
||||||
"en_GB": enGB,
|
"en_GB": enGB,
|
||||||
"ka_GE": kaGE,
|
"ka_GE": kaGE,
|
||||||
|
|||||||
@@ -880,7 +880,6 @@ func activate(app *gtk.Application) {
|
|||||||
warning_box.Append(box)
|
warning_box.Append(box)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for _, feature := range features {
|
for _, feature := range features {
|
||||||
switch feature.Var {
|
switch feature.Var {
|
||||||
case "muc_passwordprotected":
|
case "muc_passwordprotected":
|
||||||
|
|||||||
@@ -10,7 +10,21 @@ import (
|
|||||||
|
|
||||||
type VCard struct {
|
type VCard struct {
|
||||||
XMLName xml.Name `xml:"vcard-temp vCard"`
|
XMLName xml.Name `xml:"vcard-temp vCard"`
|
||||||
|
FirstName string `xml:"FN"`
|
||||||
|
LastName string `xml:"N>FAMILY"`
|
||||||
|
GivenName string `xml:"N>GIVEN"`
|
||||||
|
MiddleName string `xml:"N>MIDDLE"`
|
||||||
|
Nickname string `xml:"NICKNAME"`
|
||||||
|
URI string `xml:"URL"`
|
||||||
|
Birthday string `xml:"BDAY"`
|
||||||
|
OrgName string `xml:"ORG>ORGNAME"`
|
||||||
|
OrgUnit string `xml:"ORG>ORGUNIT"`
|
||||||
|
Title string `xml:"TITLE"`
|
||||||
|
Role string `xml:"ROLE"`
|
||||||
|
Description string `xml:"DESC"`
|
||||||
|
Jid string `xml:"JABBERID"`
|
||||||
Photo Photo `xml:"PHOTO"`
|
Photo Photo `xml:"PHOTO"`
|
||||||
|
Email string `xml:"EMAIL>USERID"`
|
||||||
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
|
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user