prioritise new version bar

pull/21833/head
Matthew Hodgson 2016-03-23 18:05:40 +00:00
parent dcfc283279
commit 1a62369a01
1 changed files with 4 additions and 4 deletions

View File

@ -1052,15 +1052,15 @@ module.exports = React.createClass({
}
var topBar;
if (MatrixClientPeg.get().isGuest()) {
if (this.state.hasNewVersion) {
topBar = <NewVersionBar />;
}
else if (MatrixClientPeg.get().isGuest()) {
topBar = <GuestWarningBar />;
}
else if (Notifier.supportsDesktopNotifications() && !Notifier.isEnabled() && !Notifier.isToolbarHidden()) {
topBar = <MatrixToolbar />;
}
else if (this.state.hasNewVersion) {
topBar = <NewVersionBar />;
}
var bodyClasses = "mx_MatrixChat";
if (topBar) {