* check recents length * Improve sorting logic in capabilities dialog * Fix allowedHosts regex array check * Remove double negative in filter checks * prettier
This commit is contained in:
@@ -217,7 +217,7 @@ export class RoomPermalinkCreator {
|
||||
|
||||
const allowed = aclEvent.getContent<{ allow: string[] }>().allow;
|
||||
allowedHostsRegexps = []; // we don't want to use the default rule here
|
||||
if (Array.isArray(denied)) {
|
||||
if (Array.isArray(allowed)) {
|
||||
allowed.forEach((h) => allowedHostsRegexps.push(getRegex(h)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user