From 7340dc0435e6d36a5a7081b20f0dac364951e305 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 10 Jul 2018 14:28:42 +0100 Subject: [PATCH] Look through rooms namespace for matching room IDs --- src/github.com/matrix-org/dendrite/common/config/appservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/common/config/appservice.go b/src/github.com/matrix-org/dendrite/common/config/appservice.go index 237a891b9..2b47eb58d 100644 --- a/src/github.com/matrix-org/dendrite/common/config/appservice.go +++ b/src/github.com/matrix-org/dendrite/common/config/appservice.go @@ -71,7 +71,7 @@ type ApplicationService struct { func (a *ApplicationService) IsInterestedInRoomID( roomID string, ) bool { - if namespaceSlice, ok := a.NamespaceMap["users"]; ok { + if namespaceSlice, ok := a.NamespaceMap["rooms"]; ok { for _, namespace := range namespaceSlice { if namespace.RegexpObject.MatchString(roomID) { return true