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

Signed-off-by: Minhaz A V <minhazav@gmail.com>
This commit is contained in:
Minhaz A V
2016-03-23 15:17:07 +05:30
parent cbcf23f30a
commit 349b472056

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) {