From c5b7a17272815a382f020b592312a08bff81860a Mon Sep 17 00:00:00 2001 From: Prateek Sachan <42961174+prateek2211@users.noreply.github.com> Date: Sat, 21 Mar 2020 03:10:24 +0530 Subject: [PATCH] Added special case for m.room.member event in appservice component (#874) * Added special case for m.room.member event in appservice component * fix review changes Co-authored-by: Kegsay --- appservice/consumers/roomserver.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appservice/consumers/roomserver.go b/appservice/consumers/roomserver.go index 3e47dee56..9180d9ef0 100644 --- a/appservice/consumers/roomserver.go +++ b/appservice/consumers/roomserver.go @@ -193,6 +193,12 @@ func (s *OutputRoomEventConsumer) appserviceIsInterestedInEvent(ctx context.Cont return true } + if event.Type() == gomatrixserverlib.MRoomMember && event.StateKey() != nil { + if appservice.IsInterestedInUserID(*event.StateKey()) { + return true + } + } + // Check all known room aliases of the room the event came from queryReq := api.GetAliasesForRoomIDRequest{RoomID: event.RoomID()} var queryRes api.GetAliasesForRoomIDResponse