mirror of https://github.com/vector-im/riot-web
prioritise new version bar
parent
dcfc283279
commit
1a62369a01
|
@ -1052,15 +1052,15 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
var topBar;
|
var topBar;
|
||||||
if (MatrixClientPeg.get().isGuest()) {
|
if (this.state.hasNewVersion) {
|
||||||
|
topBar = <NewVersionBar />;
|
||||||
|
}
|
||||||
|
else if (MatrixClientPeg.get().isGuest()) {
|
||||||
topBar = <GuestWarningBar />;
|
topBar = <GuestWarningBar />;
|
||||||
}
|
}
|
||||||
else if (Notifier.supportsDesktopNotifications() && !Notifier.isEnabled() && !Notifier.isToolbarHidden()) {
|
else if (Notifier.supportsDesktopNotifications() && !Notifier.isEnabled() && !Notifier.isToolbarHidden()) {
|
||||||
topBar = <MatrixToolbar />;
|
topBar = <MatrixToolbar />;
|
||||||
}
|
}
|
||||||
else if (this.state.hasNewVersion) {
|
|
||||||
topBar = <NewVersionBar />;
|
|
||||||
}
|
|
||||||
|
|
||||||
var bodyClasses = "mx_MatrixChat";
|
var bodyClasses = "mx_MatrixChat";
|
||||||
if (topBar) {
|
if (topBar) {
|
||||||
|
|
Loading…
Reference in New Issue