From 6e1f62d16a4aa619f6ff842e6e71cb928dcd4be0 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Fri, 6 Jul 2018 20:22:37 +0100 Subject: [PATCH] Fix stuff --- src/TextForEvent.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 1f4fc68b07..15c67526d9 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -146,15 +146,14 @@ function textForServerACLEvent(ev) { 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 (current.allow.length === 0) { 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)) { current.deny = []; }