mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 19:03:09 -06:00
Add warning for OnNewEvent when no user to wake up
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
ba35a0a96d
commit
e742b7d9b5
|
|
@ -104,6 +104,8 @@ func (n *Notifier) OnNewEvent(ev *gomatrixserverlib.Event, roomID string, userID
|
|||
n.wakeupUsers(n.joinedUsers(roomID), pos)
|
||||
} else if len(userIDs) > 0 {
|
||||
n.wakeupUsers(userIDs, pos)
|
||||
} else {
|
||||
log.Warn("WARNING: Notifier.OnNewEvent called but caller supplied no user to wake up")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue