Fix sync not returning on room join (#195)

* Use BuildEvent method on room join

* Fix building the list of room members in the sync notifier

* Fix building the list of room members in the sync notifier

* Rephrase comment
This commit is contained in:
Brendan Abolivier 2017-08-22 14:14:37 +01:00 committed by Mark Haines
parent b15ce900ab
commit 166ac9d092
2 changed files with 9 additions and 45 deletions

View file

@ -79,6 +79,9 @@ func (n *Notifier) OnNewEvent(ev *gomatrixserverlib.Event, userID string, pos ty
case "invite":
userIDs = append(userIDs, userID)
case "join":
// 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)
case "leave":
fallthrough