diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-08 23:25:58 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-08 23:25:58 +0300 |
commit | ec49d5d4124fec31d605d9242a3c21f183250902 (patch) | |
tree | 7a9a80f55101b40ee0f6f6923855f75d46bc9f28 /xmpp | |
parent | fe7346a530c8ac985f2a4a9edeeecc134f320a2f (diff) |
gofmt
Diffstat (limited to 'xmpp')
-rw-r--r-- | xmpp/component.go | 6 | ||||
-rw-r--r-- | xmpp/extensions/extensions.go | 12 | ||||
-rw-r--r-- | xmpp/handlers.go | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/xmpp/component.go b/xmpp/component.go index e22b221..961761b 100644 --- a/xmpp/component.go +++ b/xmpp/component.go @@ -37,9 +37,9 @@ func NewComponent(conf config.XMPPConfig, tc config.TelegramConfig) (*xmpp.Strea Address: conf.Host + ":" + conf.Port, Domain: conf.Jid, }, - Domain: conf.Jid, - Secret: conf.Password, - Name: "telegabber", + Domain: conf.Jid, + Secret: conf.Password, + Name: "telegabber", } router := xmpp.NewRouter() diff --git a/xmpp/extensions/extensions.go b/xmpp/extensions/extensions.go index ea00008..284dd91 100644 --- a/xmpp/extensions/extensions.go +++ b/xmpp/extensions/extensions.go @@ -26,12 +26,12 @@ type PresenceXVCardUpdatePhoto struct { // IqVcardTemp is from XEP-0054 type IqVcardTemp struct { - XMLName xml.Name `xml:"vcard-temp vCard"` - Fn IqVcardFn - Nickname IqVcardNickname - N IqVcardN - Tel IqVcardTel - Photo IqVcardPhoto + XMLName xml.Name `xml:"vcard-temp vCard"` + Fn IqVcardFn + Nickname IqVcardNickname + N IqVcardN + Tel IqVcardTel + Photo IqVcardPhoto ResultSet *stanza.ResultSet `xml:"set,omitempty"` } diff --git a/xmpp/handlers.go b/xmpp/handlers.go index d14fd31..bb80bb0 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -305,8 +305,8 @@ func handleGetDiscoInfo(s xmpp.Sender, iq *stanza.IQ) { answer, err := stanza.NewIQ(stanza.Attrs{ Type: stanza.IQTypeResult, From: iq.To, - To: iq.From, - Id: iq.Id, + To: iq.From, + Id: iq.Id, Lang: "en", }) if err != nil { |