This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +46
-10
lines changed Expand file tree Collapse file tree 3 files changed +46
-10
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,10 @@ module.exports = React.createClass({
264264 title : "Sign out?" ,
265265 description :
266266 < div >
267- For security, logging out will delete any end-to-end encryption keys from this browser,
268- making previous encrypted chat history unreadable if you log back in.
269- In future this < a href = "https://github.com/vector-im/riot-web/issues/2108" > will be improved </ a > ,
270- but for now be warned .
267+ For security, logging out will delete any end-to-end encryption keys from this browser.
268+
269+ If you want to be able to decrypt your conversation history from future Riot sessions ,
270+ please export your room keys for safe-keeping .
271271 </ div > ,
272272 button : "Sign out" ,
273273 extraButtons : [
Original file line number Diff line number Diff line change @@ -93,11 +93,17 @@ module.exports = React.createClass({
9393 description :
9494 < div >
9595 Resetting password will currently reset any end-to-end encryption keys on all devices,
96- making encrypted chat history unreadable.
97- In future this < a href = "https://github.com/vector-im/riot-web/issues/2671" > may be improved </ a > ,
98- but for now be warned .
96+ making encrypted chat history unreadable, unless you first export your room keys
97+ and re-import them afterwards.
98+ In future this < a href = "https://github.com/vector-im/riot-web/issues/2671" > will be improved </ a > .
9999 </ div > ,
100100 button : "Continue" ,
101+ extraButtons : [
102+ < button className = "mx_Dialog_primary"
103+ onClick = { this . _onExportE2eKeysClicked } >
104+ Export E2E room keys
105+ </ button >
106+ ] ,
101107 onFinished : ( confirmed ) => {
102108 if ( confirmed ) {
103109 this . submitPasswordReset (
@@ -110,6 +116,18 @@ module.exports = React.createClass({
110116 }
111117 } ,
112118
119+ _onExportE2eKeysClicked : function ( ) {
120+ Modal . createDialogAsync (
121+ ( cb ) => {
122+ require . ensure ( [ '../../../async-components/views/dialogs/ExportE2eKeysDialog' ] , ( ) => {
123+ cb ( require ( '../../../async-components/views/dialogs/ExportE2eKeysDialog' ) ) ;
124+ } , "e2e-export" ) ;
125+ } , {
126+ matrixClient : MatrixClientPeg . get ( ) ,
127+ }
128+ ) ;
129+ } ,
130+
113131 onInputChanged : function ( stateKey , ev ) {
114132 this . setState ( {
115133 [ stateKey ] : ev . target . value
Original file line number Diff line number Diff line change @@ -73,11 +73,17 @@ module.exports = React.createClass({
7373 description :
7474 < div >
7575 Changing password will currently reset any end-to-end encryption keys on all devices,
76- making encrypted chat history unreadable.
77- This will be < a href = "https://github.com/vector-im/riot-web/issues/2671" > improved shortly </ a > ,
78- but for now be warned .
76+ making encrypted chat history unreadable, unless you first export your room keys
77+ and re-import them afterwards.
78+ In future this < a href = "https://github.com/vector-im/riot-web/issues/2671" > will be improved </ a > .
7979 </ div > ,
8080 button : "Continue" ,
81+ extraButtons : [
82+ < button className = "mx_Dialog_primary"
83+ onClick = { this . _onExportE2eKeysClicked } >
84+ Export E2E room keys
85+ </ button >
86+ ] ,
8187 onFinished : ( confirmed ) => {
8288 if ( confirmed ) {
8389 var authDict = {
@@ -105,6 +111,18 @@ module.exports = React.createClass({
105111 } ) ;
106112 } ,
107113
114+ _onExportE2eKeysClicked : function ( ) {
115+ Modal . createDialogAsync (
116+ ( cb ) => {
117+ require . ensure ( [ '../../../async-components/views/dialogs/ExportE2eKeysDialog' ] , ( ) => {
118+ cb ( require ( '../../../async-components/views/dialogs/ExportE2eKeysDialog' ) ) ;
119+ } , "e2e-export" ) ;
120+ } , {
121+ matrixClient : MatrixClientPeg . get ( ) ,
122+ }
123+ ) ;
124+ } ,
125+
108126 onClickChange : function ( ) {
109127 var old_password = this . refs . old_input . value ;
110128 var new_password = this . refs . new_input . value ;
You can’t perform that action at this time.
0 commit comments