mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 12:17:06 +00:00
Less "Nickname change presence?" warnings
This commit is contained in:
parent
6a8a96a4f4
commit
0500b3535f
1 changed files with 7 additions and 7 deletions
|
|
@ -536,13 +536,6 @@ func handleMUCPresence(s xmpp.Sender, p stanza.Presence, mucExt stanza.MucPresen
|
||||||
}
|
}
|
||||||
|
|
||||||
func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) {
|
func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) {
|
||||||
log.WithFields(log.Fields{
|
|
||||||
"type": p.Type,
|
|
||||||
"from": p.From,
|
|
||||||
"to": p.To,
|
|
||||||
}).Warn("Nickname change presence?")
|
|
||||||
log.Debugf("%#v", p)
|
|
||||||
|
|
||||||
if p.Type != "" {
|
if p.Type != "" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -552,6 +545,13 @@ func tryHandleMUCNicknameChange(s xmpp.Sender, p stanza.Presence) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.WithFields(log.Fields{
|
||||||
|
"type": p.Type,
|
||||||
|
"from": p.From,
|
||||||
|
"to": p.To,
|
||||||
|
}).Warn("Nickname change presence?")
|
||||||
|
log.Debugf("%#v", p)
|
||||||
|
|
||||||
fromBare, fromResource, ok := gateway.SplitJID(p.From)
|
fromBare, fromResource, ok := gateway.SplitJID(p.From)
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue