diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-17 07:54:23 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-17 07:54:23 +0300 |
commit | 776993894ad780f1500c139aff85378c8a1d22f5 (patch) | |
tree | e4554099cc3fbb0e4f38b9115ede115c8908e024 /xmpp/handlers.go | |
parent | 9dbd487dae9b5a74981873722be685d3706ab772 (diff) |
Merge hotfix: remove redundant "registered" identity
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r-- | xmpp/handlers.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 96a30c4..6f51427 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -463,9 +463,7 @@ func handleGetDisco(dt discoType, s xmpp.Sender, iq *stanza.IQ) { if dt == discoTypeInfo { disco := answer.DiscoInfo() toID, toOk := toToID(iq.To) - if toOk { - disco.AddIdentity("", "account", "registered") - } else { + if !toOk { disco.AddIdentity("Telegram Gateway", "gateway", "telegram") disco.AddFeatures("jabber:iq:register") } |