Ignore presences from roster
This commit is contained in:
@@ -636,6 +636,12 @@ func (j *Jabber) ParseEvent(e any) { //nolint:maintidx,gocognit,gocyclo
|
||||
v.Type, v.From, v.To, v.Show, v.Status, v.Affiliation, v.Role, v.JID,
|
||||
)
|
||||
|
||||
if !strings.Contains(v.From, "/") {
|
||||
log.Debugf("Looks like we have got Presence notification from roster: %s, skip it", v.From)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
room := strings.SplitN(v.From, "/", 2)[0]
|
||||
nick := strings.SplitN(v.From, "/", 2)[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user