Fix building the list of room members in the sync notifier

This commit is contained in:
Brendan Abolivier 2017-08-22 13:59:08 +01:00
parent 2010332d35
commit 045419229a
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -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