mirror of
https://github.com/maubot/maubot
synced 2025-08-29 20:10:39 +00:00
Use custom type for EventHandler output
This commit is contained in:
parent
feaf75b327
commit
944b384633
3 changed files with 15 additions and 12 deletions
|
@ -135,7 +135,7 @@ func (s *MaubotSyncer) notifyListeners(mxEvent *gomatrix.Event) {
|
|||
return
|
||||
}
|
||||
for _, fn := range listeners {
|
||||
if !fn(event.Interface()) {
|
||||
if fn(event.Interface()) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue