This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +47
-11
lines changed Expand file tree Collapse file tree 4 files changed +47
-11
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,10 @@ module.exports = React.createClass({
264
264
title : "Sign out?" ,
265
265
description :
266
266
< 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 .
271
271
</ div > ,
272
272
button : "Sign out" ,
273
273
extraButtons : [
Original file line number Diff line number Diff line change @@ -93,11 +93,17 @@ module.exports = React.createClass({
93
93
description :
94
94
< div >
95
95
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 > .
99
99
</ div > ,
100
100
button : "Continue" ,
101
+ extraButtons : [
102
+ < button className = "mx_Dialog_primary"
103
+ onClick = { this . _onExportE2eKeysClicked } >
104
+ Export E2E room keys
105
+ </ button >
106
+ ] ,
101
107
onFinished : ( confirmed ) => {
102
108
if ( confirmed ) {
103
109
this . submitPasswordReset (
@@ -110,6 +116,18 @@ module.exports = React.createClass({
110
116
}
111
117
} ,
112
118
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
+
113
131
onInputChanged : function ( stateKey , ev ) {
114
132
this . setState ( {
115
133
[ stateKey ] : ev . target . value
Original file line number Diff line number Diff line change @@ -73,11 +73,17 @@ module.exports = React.createClass({
73
73
description :
74
74
< div >
75
75
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 > .
79
79
</ div > ,
80
80
button : "Continue" ,
81
+ extraButtons : [
82
+ < button className = "mx_Dialog_primary"
83
+ onClick = { this . _onExportE2eKeysClicked } >
84
+ Export E2E room keys
85
+ </ button >
86
+ ] ,
81
87
onFinished : ( confirmed ) => {
82
88
if ( confirmed ) {
83
89
var authDict = {
@@ -105,6 +111,18 @@ module.exports = React.createClass({
105
111
} ) ;
106
112
} ,
107
113
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
+
108
126
onClickChange : function ( ) {
109
127
var old_password = this . refs . old_input . value ;
110
128
var new_password = this . refs . new_input . value ;
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ var escapeRegExp = function(string) {
122
122
// anyone else really should be using matrix.to.
123
123
matrixLinkify . VECTOR_URL_PATTERN = "^(?:https?:\/\/)?(?:"
124
124
+ escapeRegExp ( window . location . host + window . location . pathname ) + "|"
125
- + "(?:www\\.)?vector\\.im/(?:beta|staging|develop)/"
125
+ + "(?:www\\.)?(riot| vector) \\.im/(?:beta|staging|develop)/"
126
126
+ ")(#.*)" ;
127
127
128
128
matrixLinkify . MATRIXTO_URL_PATTERN = "^(?:https?:\/\/)?(?:www\\.)?matrix\\.to/#/((#|@|!).*)" ;
You can’t perform that action at this time.
0 commit comments