Merge hotfix: remove redundant "registered" identity

This commit is contained in:
Bohdan Horbeshko 2023-09-17 00:54:23 -04:00
parent 9dbd487dae
commit 776993894a

View file

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