fix(chat): show toolbar on open

This commit is contained in:
Leonard Kim 2019-07-17 15:06:10 -07:00 committed by virtuacoplenny
parent c0e9f2b95a
commit 130ab886ee
1 changed files with 9 additions and 0 deletions

View File

@ -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.