mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-18 01:33:39 +00:00
Look through rooms namespace for matching room IDs
This commit is contained in:
parent
ee5ec50dbe
commit
ccb26ebbfb
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ type ApplicationService struct {
|
||||||
func (a *ApplicationService) IsInterestedInRoomID(
|
func (a *ApplicationService) IsInterestedInRoomID(
|
||||||
roomID string,
|
roomID string,
|
||||||
) bool {
|
) bool {
|
||||||
if namespaceSlice, ok := a.NamespaceMap["users"]; ok {
|
if namespaceSlice, ok := a.NamespaceMap["rooms"]; ok {
|
||||||
for _, namespace := range namespaceSlice {
|
for _, namespace := range namespaceSlice {
|
||||||
if namespace.RegexpObject.MatchString(roomID) {
|
if namespace.RegexpObject.MatchString(roomID) {
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue