Merge remote-tracking branch 'origin/develop' into release-v0.8.7
						commit
						2e01ab675d
					
				|  | @ -264,10 +264,10 @@ module.exports = React.createClass({ | |||
|             title: "Sign out?", | ||||
|             description: | ||||
|                 <div> | ||||
|                     For security, logging out will delete any end-to-end encryption keys from this browser, | ||||
|                     making previous encrypted chat history unreadable if you log back in. | ||||
|                     In future this <a href="https://github.com/vector-im/riot-web/issues/2108">will be improved</a>, | ||||
|                     but for now be warned. | ||||
|                     For security, logging out will delete any end-to-end encryption keys from this browser. | ||||
| 
 | ||||
|                     If you want to be able to decrypt your conversation history from future Riot sessions, | ||||
|                     please export your room keys for safe-keeping. | ||||
|                 </div>, | ||||
|             button: "Sign out", | ||||
|             extraButtons: [ | ||||
|  |  | |||
|  | @ -93,11 +93,17 @@ module.exports = React.createClass({ | |||
|                 description: | ||||
|                     <div> | ||||
|                         Resetting password will currently reset any end-to-end encryption keys on all devices, | ||||
|                         making encrypted chat history unreadable. | ||||
|                         In future this <a href="https://github.com/vector-im/riot-web/issues/2671">may be improved</a>, | ||||
|                         but for now be warned. | ||||
|                         making encrypted chat history unreadable, unless you first export your room keys | ||||
|                         and re-import them afterwards. | ||||
|                         In future this <a href="https://github.com/vector-im/riot-web/issues/2671">will be improved</a>. | ||||
|                     </div>, | ||||
|                 button: "Continue", | ||||
|                 extraButtons: [ | ||||
|                     <button className="mx_Dialog_primary" | ||||
|                             onClick={this._onExportE2eKeysClicked}> | ||||
|                         Export E2E room keys | ||||
|                     </button> | ||||
|                 ], | ||||
|                 onFinished: (confirmed) => { | ||||
|                     if (confirmed) { | ||||
|                         this.submitPasswordReset( | ||||
|  | @ -110,6 +116,18 @@ module.exports = React.createClass({ | |||
|         } | ||||
|     }, | ||||
| 
 | ||||
|     _onExportE2eKeysClicked: function() { | ||||
|         Modal.createDialogAsync( | ||||
|             (cb) => { | ||||
|                 require.ensure(['../../../async-components/views/dialogs/ExportE2eKeysDialog'], () => { | ||||
|                     cb(require('../../../async-components/views/dialogs/ExportE2eKeysDialog')); | ||||
|                 }, "e2e-export"); | ||||
|             }, { | ||||
|                 matrixClient: MatrixClientPeg.get(), | ||||
|             } | ||||
|         ); | ||||
|     }, | ||||
| 
 | ||||
|     onInputChanged: function(stateKey, ev) { | ||||
|         this.setState({ | ||||
|             [stateKey]: ev.target.value | ||||
|  |  | |||
|  | @ -73,11 +73,17 @@ module.exports = React.createClass({ | |||
|             description: | ||||
|                 <div> | ||||
|                     Changing password will currently reset any end-to-end encryption keys on all devices, | ||||
|                     making encrypted chat history unreadable. | ||||
|                     This will be <a href="https://github.com/vector-im/riot-web/issues/2671">improved shortly</a>, | ||||
|                     but for now be warned. | ||||
|                     making encrypted chat history unreadable, unless you first export your room keys | ||||
|                     and re-import them afterwards. | ||||
|                     In future this <a href="https://github.com/vector-im/riot-web/issues/2671">will be improved</a>. | ||||
|                 </div>, | ||||
|             button: "Continue", | ||||
|             extraButtons: [ | ||||
|                 <button className="mx_Dialog_primary" | ||||
|                         onClick={this._onExportE2eKeysClicked}> | ||||
|                     Export E2E room keys | ||||
|                 </button> | ||||
|             ], | ||||
|             onFinished: (confirmed) => { | ||||
|                 if (confirmed) { | ||||
|                     var authDict = { | ||||
|  | @ -105,6 +111,18 @@ module.exports = React.createClass({ | |||
|         }); | ||||
|     }, | ||||
| 
 | ||||
|     _onExportE2eKeysClicked: function() { | ||||
|         Modal.createDialogAsync( | ||||
|             (cb) => { | ||||
|                 require.ensure(['../../../async-components/views/dialogs/ExportE2eKeysDialog'], () => { | ||||
|                     cb(require('../../../async-components/views/dialogs/ExportE2eKeysDialog')); | ||||
|                 }, "e2e-export"); | ||||
|             }, { | ||||
|                 matrixClient: MatrixClientPeg.get(), | ||||
|             } | ||||
|         ); | ||||
|     },     | ||||
| 
 | ||||
|     onClickChange: function() { | ||||
|         var old_password = this.refs.old_input.value; | ||||
|         var new_password = this.refs.new_input.value; | ||||
|  |  | |||
|  | @ -122,7 +122,7 @@ var escapeRegExp = function(string) { | |||
| // anyone else really should be using matrix.to.
 | ||||
| matrixLinkify.VECTOR_URL_PATTERN = "^(?:https?:\/\/)?(?:" | ||||
|     + escapeRegExp(window.location.host + window.location.pathname) + "|" | ||||
|     + "(?:www\\.)?vector\\.im/(?:beta|staging|develop)/" | ||||
|     + "(?:www\\.)?(riot|vector)\\.im/(?:beta|staging|develop)/" | ||||
|     + ")(#.*)"; | ||||
| 
 | ||||
| matrixLinkify.MATRIXTO_URL_PATTERN = "^(?:https?:\/\/)?(?:www\\.)?matrix\\.to/#/((#|@|!).*)"; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 David Baker
						David Baker