From 21ceb4fdc496ea56564e92f1a4f5863616e97c4c Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sun, 6 Mar 2022 17:48:31 +0530 Subject: [PATCH] Fix room with join rule knock looks dm Signed-off-by: Ajay Bura --- src/util/matrixUtil.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/matrixUtil.js b/src/util/matrixUtil.js index 78d5bb8..1af6cb1 100644 --- a/src/util/matrixUtil.js +++ b/src/util/matrixUtil.js @@ -96,6 +96,7 @@ export function hasDMWith(userId) { export function joinRuleToIconSrc(joinRule, isSpace) { return ({ restricted: () => (isSpace ? SpaceIC : HashIC), + knock: () => (isSpace ? SpaceLockIC : HashLockIC), invite: () => (isSpace ? SpaceLockIC : HashLockIC), public: () => (isSpace ? SpaceGlobeIC : HashGlobeIC), }[joinRule]?.() || null);