Merge hotfix: remove redundant "registered" identity
This commit is contained in:
parent
9dbd487dae
commit
776993894a
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue