Przeglądaj źródła

fix(chat): show toolbar on open

master
Leonard Kim 6 lat temu
rodzic
commit
130ab886ee
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9
    0
      react/features/chat/middleware.js

+ 9
- 0
react/features/chat/middleware.js Wyświetl plik

@@ -84,6 +84,15 @@ StateListenerRegistry.register(
84 84
         }
85 85
     });
86 86
 
87
+StateListenerRegistry.register(
88
+    state => state['features/chat'].isOpen,
89
+    (isOpen, { dispatch }) => {
90
+        if (typeof APP !== 'undefined' && isOpen) {
91
+            dispatch(showToolbox());
92
+        }
93
+    }
94
+);
95
+
87 96
 /**
88 97
  * Registers listener for {@link JitsiConferenceEvents.MESSAGE_RECEIVED} that
89 98
  * will perform various chat related activities.

Ładowanie…
Anuluj
Zapisz