mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
Look through rooms namespace for matching room IDs
This commit is contained in:
parent
fd8a17cca0
commit
7340dc0435
|
|
@ -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