Update Permalinks.ts

This commit is contained in:
Michael Telatynski 2023-05-31 12:55:14 +01:00 committed by GitHub
parent 636b6884e8
commit a9abf58ac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,8 +216,7 @@ export class RoomPermalinkCreator {
if (this.room?.currentState) {
const aclEvent = this.room?.currentState.getStateEvents(EventType.RoomServerAcl, "");
if (aclEvent && aclEvent.getContent()) {
const getRegex = (hostname: string): RegExp =>
new RegExp("^" + utils.globToRegexp(hostname) + "$");
const getRegex = (hostname: string): RegExp => new RegExp("^" + utils.globToRegexp(hostname) + "$");
const denied = aclEvent.getContent<{ deny: string[] }>().deny;
if (Array.isArray(denied)) {