From 130ab886ee2c00eddc47cb91004a75d537eb249f Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Wed, 17 Jul 2019 15:06:10 -0700 Subject: [PATCH] fix(chat): show toolbar on open --- react/features/chat/middleware.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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.