mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Update Permalinks.ts
This commit is contained in:
parent
636b6884e8
commit
a9abf58ac3
1 changed files with 1 additions and 2 deletions
|
@ -216,8 +216,7 @@ export class RoomPermalinkCreator {
|
||||||
if (this.room?.currentState) {
|
if (this.room?.currentState) {
|
||||||
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) + "$");
|
||||||
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)) {
|
||||||
|
|
Loading…
Reference in a new issue