diff options
author | Prateek Sachan <42961174+prateek2211@users.noreply.github.com> | 2020-03-21 03:10:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 21:40:24 +0000 |
commit | c5b7a17272815a382f020b592312a08bff81860a (patch) | |
tree | 3d56db6ce7cf5775ec69c7e1a7a9a3ffe452ed5f /appservice | |
parent | f2030286de4838f26cffbb2fb3f48f850dc7335a (diff) |
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 <kegan@matrix.org>
Diffstat (limited to 'appservice')
-rw-r--r-- | appservice/consumers/roomserver.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/appservice/consumers/roomserver.go b/appservice/consumers/roomserver.go index 3e47dee5..9180d9ef 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 |