mirror of https://github.com/vector-im/riot-web
logic to show/hide toolbar shifted to MatrixChat::render
Signed-off-by: Minhaz A V <minhazav@gmail.com>pull/21833/head
parent
cbcf23f30a
commit
349b472056
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue