Merge pull request #2047 from matrix-org/hs/fix-server-acl-renderer
Fix stuff
This commit is contained in:
commit
83a7f126f9
1 changed files with 3 additions and 4 deletions
|
@ -146,15 +146,14 @@ function textForServerACLEvent(ev) {
|
||||||
text = `${senderDisplayName} changed the server ACLs for this room: `;
|
text = `${senderDisplayName} changed the server ACLs for this room: `;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Array.isArray(current.allow)) {
|
||||||
|
current.allow = [];
|
||||||
|
}
|
||||||
/* If we know for sure everyone is banned, don't bother showing the diff view */
|
/* If we know for sure everyone is banned, don't bother showing the diff view */
|
||||||
if (current.allow.length === 0) {
|
if (current.allow.length === 0) {
|
||||||
return text + "🎉 All servers are banned from participating! This room can no longer be used.";
|
return text + "🎉 All servers are banned from participating! This room can no longer be used.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Array.isArray(current.allow)) {
|
|
||||||
current.allow = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Array.isArray(current.deny)) {
|
if (!Array.isArray(current.deny)) {
|
||||||
current.deny = [];
|
current.deny = [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue