From 7af14e60207e5cf7f92f146f343a4a8f8e81fbea Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 22 Aug 2017 13:59:08 +0100 Subject: [PATCH] Fix building the list of room members in the sync notifier --- src/github.com/matrix-org/dendrite/syncapi/sync/notifier.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/syncapi/sync/notifier.go b/src/github.com/matrix-org/dendrite/syncapi/sync/notifier.go index c2fdd8f03..94d1ad243 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/sync/notifier.go +++ b/src/github.com/matrix-org/dendrite/syncapi/sync/notifier.go @@ -79,6 +79,9 @@ func (n *Notifier) OnNewEvent(ev *gomatrixserverlib.Event, userID string, pos ty case "invite": userIDs = append(userIDs, userID) 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) case "leave": fallthrough