Add a not condition to an if statement
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
4b06d6886a
commit
8eb9ba32b5
|
@ -113,7 +113,7 @@ func (s *XMPPService) message(msgHead stanza.Message, t xmlstream.TokenReadEncod
|
|||
return nil
|
||||
}
|
||||
from := msgHead.From.String()
|
||||
if settings := strings.Split(conn.Settings, ":"); len(settings) > 1 && settings[0] == from {
|
||||
if settings := strings.Split(conn.Settings, ":"); !(len(settings) > 1 && settings[0] == from) {
|
||||
log.WithField("from", from).Info("message not from gateway, that is no notification")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue