Look through rooms namespace for matching room IDs

This commit is contained in:
Andrew Morgan 2018-07-10 14:28:42 +01:00
parent fd8a17cca0
commit 7340dc0435

View file

@ -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