Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(chat): show toolbar on open

Leonard Kim130ab886ee2c
diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.js
index 7b96bebaf6..433ee55de9 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.