From d28a3580ae0f3a570f76fed1147c4768c5de98ca Mon Sep 17 00:00:00 2001 From: Dhruv Jain Date: Tue, 9 Mar 2021 22:13:24 +0530 Subject: [PATCH 1/4] [FIX] Highlight Unread Rooms - Events do not emit if iframe is not loaded - Load iframe in home - Fix add room when sorting is enabled --- client/src/components/ChatWindow/index.css | 4 + client/src/components/ChatWindow/index.js | 9 +- .../src/components/CommunityListItem/index.js | 22 ++-- client/src/components/CreateChannel/index.js | 2 +- client/src/components/MainLayout/index.js | 53 +++------ client/src/components/RoomItem/index.css | 4 + client/src/components/RoomItem/index.js | 9 +- .../src/components/SignedLeftSidebar/index.js | 106 ++++++++++++------ 8 files changed, 122 insertions(+), 87 deletions(-) diff --git a/client/src/components/ChatWindow/index.css b/client/src/components/ChatWindow/index.css index b7e6439..37127a5 100644 --- a/client/src/components/ChatWindow/index.css +++ b/client/src/components/ChatWindow/index.css @@ -4,6 +4,10 @@ position: relative; } +.hide-chatWindow-container { + display: none !important; +} + .loading-chatWindow { background-color: #2f343d; position: absolute; diff --git a/client/src/components/ChatWindow/index.js b/client/src/components/ChatWindow/index.js index 2372d9f..68d00f3 100644 --- a/client/src/components/ChatWindow/index.js +++ b/client/src/components/ChatWindow/index.js @@ -7,7 +7,7 @@ export default function ChatWindow(props) { useEffect(() => { document.getElementsByTagName( "iframe" - )[0].src = `${rcApiDomain}${pathname}/?layout=embedded`; + )[0].src = `${rcApiDomain}${pathname}?layout=embedded`; // eslint-disable-next-line }, []); useEffect(() => { @@ -18,7 +18,12 @@ export default function ChatWindow(props) { ); }, [pathname]); return ( -
+