Chat fix for clearing

This commit is contained in:
Bill 2021-09-27 00:14:33 -04:00
parent ce7e6281df
commit 8581ea99b9

View File

@ -49,8 +49,10 @@ export const ChatWidgetView: FC<{}> = props =>
moveChatUp(existingChat, amount); moveChatUp(existingChat, amount);
}); });
removeHiddenChats();
} }
}, [ chatMessages, moveChatUp ]); }, [ chatMessages, moveChatUp, removeHiddenChats ]);
const addChat = useCallback((chat: ChatBubbleMessage) => const addChat = useCallback((chat: ChatBubbleMessage) =>
{ {