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,
|
||||||
|
|||||||
@@ -100,11 +100,11 @@ var enGB = map[string]string{ // British English
|
|||||||
"SIInsecureLabelTooltip": "Tick this if you need to connect without TLS, usually for connecting to Tor XMPP servers",
|
"SIInsecureLabelTooltip": "Tick this if you need to connect without TLS, usually for connecting to Tor XMPP servers",
|
||||||
}
|
}
|
||||||
|
|
||||||
var kaGE = map[string]string { // Georgian (Georgia)
|
var kaGE = map[string]string{ // Georgian (Georgia)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var roRo = map[string]string { // Romanian (Romania)
|
var roRo = map[string]string{ // Romanian (Romania)
|
||||||
"appName": "Lambda",
|
"appName": "Lambda",
|
||||||
"cancel": "Canselează",
|
"cancel": "Canselează",
|
||||||
"submit": "A preda",
|
"submit": "A preda",
|
||||||
@@ -127,8 +127,7 @@ 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,
|
||||||
"en_US": enUS,
|
"en_US": enUS,
|
||||||
|
|||||||
@@ -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