mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Fix building the list of room members in the sync notifier
This commit is contained in:
parent
2010332d35
commit
045419229a
|
|
@ -79,6 +79,9 @@ func (n *Notifier) OnNewEvent(ev *gomatrixserverlib.Event, userID string, pos ty
|
||||||
case "invite":
|
case "invite":
|
||||||
userIDs = append(userIDs, userID)
|
userIDs = append(userIDs, userID)
|
||||||
case "join":
|
case "join":
|
||||||
|
// We have to manually append the new user's ID so they get
|
||||||
|
// notified along all members in the room
|
||||||
|
userIDs = append(userIDs, userID)
|
||||||
n.addJoinedUser(ev.RoomID(), userID)
|
n.addJoinedUser(ev.RoomID(), userID)
|
||||||
case "leave":
|
case "leave":
|
||||||
fallthrough
|
fallthrough
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue