From 9b7cdd86f7043944d98fda83ff722bc061b9fb01 Mon Sep 17 00:00:00 2001 From: Dhruv Jain Date: Tue, 9 Mar 2021 22:13:24 +0530 Subject: [PATCH 1/8] [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 | 6 +- client/src/components/MainLayout/index.js | 53 ++++-------- client/src/components/RoomItem/index.css | 4 + client/src/components/RoomItem/index.js | 5 +- .../src/components/SignedLeftSidebar/index.js | 82 +++++++++++-------- 7 files changed, 90 insertions(+), 73 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 ( -
+