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") }