Look through rooms namespace for matching room IDs

This commit is contained in:
Andrew Morgan 2018-07-10 14:26:32 +01:00
parent ee5ec50dbe
commit ccb26ebbfb

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