diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index a2a308ed5c..12acdc21fd 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1474,6 +1474,16 @@ module.exports = React.createClass({ } }, + onRegisterClicked: function() { + dis.dispatch({'action': 'logout'}); + dis.dispatch({'action': 'start_registration'}); + }, + + onLoginClicked: function() { + dis.dispatch({'action': 'logout'}); + dis.dispatch({'action': 'start_login'}); + }, + render: function() { var RoomHeader = sdk.getComponent('rooms.RoomHeader'); var MessageComposer = sdk.getComponent('rooms.MessageComposer'); @@ -1581,13 +1591,13 @@ module.exports = React.createClass({ // a connection! if (this.state.syncState === "ERROR") { statusBar = ( -
+
/!\ -
-
+
+
Connectivity to the server has been lost.
-
+
Sent messages will be stored until your connection has returned.
@@ -1611,13 +1621,13 @@ module.exports = React.createClass({ } else if (this.state.hasUnsentMessages) { statusBar = ( -