mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
Update Permalinks.ts
This commit is contained in:
committed by
GitHub
parent
ebf011fae9
commit
636b6884e8
@@ -217,7 +217,7 @@ export class RoomPermalinkCreator {
|
|||||||
const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, "");
|
const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, "");
|
||||||
if (aclEvent && aclEvent.getContent()) {
|
if (aclEvent && aclEvent.getContent()) {
|
||||||
const getRegex = (hostname: string): RegExp =>
|
const getRegex = (hostname: string): RegExp =>
|
||||||
new RegExp("^" + utils.globToRegexp(hostname, false) + "$");
|
new RegExp("^" + utils.globToRegexp(hostname) + "$");
|
||||||
|
|
||||||
const denied = aclEvent.getContent<{ deny: string[] }>().deny;
|
const denied = aclEvent.getContent<{ deny: string[] }>().deny;
|
||||||
if (Array.isArray(denied)) {
|
if (Array.isArray(denied)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user