From 776993894ad780f1500c139aff85378c8a1d22f5 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sun, 17 Sep 2023 00:54:23 -0400 Subject: [PATCH] Merge hotfix: remove redundant "registered" identity --- xmpp/handlers.go | 4 +--- 1 file changed, 1 insertion(+), 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") }