From 8581ea99b97194dd3a63181fdceb4d44f270e1dc Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 27 Sep 2021 00:14:33 -0400 Subject: [PATCH] Chat fix for clearing --- src/views/room/widgets/chat/ChatWidgetView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/room/widgets/chat/ChatWidgetView.tsx b/src/views/room/widgets/chat/ChatWidgetView.tsx index 30d67d04..6dab7b50 100644 --- a/src/views/room/widgets/chat/ChatWidgetView.tsx +++ b/src/views/room/widgets/chat/ChatWidgetView.tsx @@ -49,8 +49,10 @@ export const ChatWidgetView: FC<{}> = props => moveChatUp(existingChat, amount); }); + + removeHiddenChats(); } - }, [ chatMessages, moveChatUp ]); + }, [ chatMessages, moveChatUp, removeHiddenChats ]); const addChat = useCallback((chat: ChatBubbleMessage) => {