logic to show/hide toolbar shifted to MatrixChat::render

Signed-off-by: Minhaz A V <minhazav@gmail.com>
pull/21833/head
Minhaz A V 2016-03-23 15:17:07 +05:30
parent cbcf23f30a
commit 349b472056
1 changed files with 1 additions and 1 deletions

View File

@ -1046,7 +1046,7 @@ module.exports = React.createClass({
if (MatrixClientPeg.get().isGuest()) {
topBar = <GuestWarningBar />;
}
else if (Notifier.supportsDesktopNotifications() && !Notifier.isEnabled() && !Notifier.isToolbarHidden()) {
else if (Notifier.supportsDesktopNotifications() && Notifier.shouldShowToolbar()) {
topBar = <MatrixToolbar />;
}
else if (this.state.hasNewVersion) {