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 {
|
if dt == discoTypeInfo {
|
||||||
disco := answer.DiscoInfo()
|
disco := answer.DiscoInfo()
|
||||||
toID, toOk := toToID(iq.To)
|
toID, toOk := toToID(iq.To)
|
||||||
if toOk {
|
if !toOk {
|
||||||
disco.AddIdentity("", "account", "registered")
|
|
||||||
} else {
|
|
||||||
disco.AddIdentity("Telegram Gateway", "gateway", "telegram")
|
disco.AddIdentity("Telegram Gateway", "gateway", "telegram")
|
||||||
disco.AddFeatures("jabber:iq:register")
|
disco.AddFeatures("jabber:iq:register")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue