logic to show/hide toolbar shifted to MatrixChat::render
Signed-off-by: Minhaz A V <minhazav@gmail.com>
This commit is contained in:
@@ -1046,7 +1046,7 @@ module.exports = React.createClass({
|
|||||||
if (MatrixClientPeg.get().isGuest()) {
|
if (MatrixClientPeg.get().isGuest()) {
|
||||||
topBar = <GuestWarningBar />;
|
topBar = <GuestWarningBar />;
|
||||||
}
|
}
|
||||||
else if (Notifier.supportsDesktopNotifications() && !Notifier.isEnabled() && !Notifier.isToolbarHidden()) {
|
else if (Notifier.supportsDesktopNotifications() && Notifier.shouldShowToolbar()) {
|
||||||
topBar = <MatrixToolbar />;
|
topBar = <MatrixToolbar />;
|
||||||
}
|
}
|
||||||
else if (this.state.hasNewVersion) {
|
else if (this.state.hasNewVersion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user