diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js index 7b96bebaf..433ee55de 100644 --- a/react/features/chat/middleware.js +++ b/react/features/chat/middleware.js @@ -84,6 +84,15 @@ StateListenerRegistry.register( } }); +StateListenerRegistry.register( + state => state['features/chat'].isOpen, + (isOpen, { dispatch }) => { + if (typeof APP !== 'undefined' && isOpen) { + dispatch(showToolbox()); + } + } +); + /** * Registers listener for {@link JitsiConferenceEvents.MESSAGE_RECEIVED} that * will perform various chat related activities.