Skip to content

Commit 6e0f83a

Browse files
committed
Merge branch 'release-v0.9.5'
2 parents e8eadc5 + 7474088 commit 6e0f83a

5 files changed

Lines changed: 25 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Changes in [0.9.5](https://github.com/vector-im/riot-web/releases/tag/v0.9.5) (2016-12-24)
2+
==========================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.4...v0.9.5)
4+
5+
* make electron send email validation URLs with a nextlink of riot.im rather than file:///
6+
* add gnu-tar to debian electron build deps
7+
* fix win32 shortcut in start menu
8+
19
Changes in [0.9.4](https://github.com/vector-im/riot-web/releases/tag/v0.9.4) (2016-12-22)
210
==========================================================================================
311
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.3...v0.9.4)

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ The only platform that can build packages for all three platforms is macOS:
122122
```
123123
brew install wine --without-x11
124124
brew install mono
125+
brew install gnu-tar
125126
npm install
126127
npm run build:electron
127128
```

‎electron/src/squirrelhooks.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const spawn = require('child_process').spawn;
33
const app = require('electron').app;
44

55
function run_update_exe(args, done) {
6-
const updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe');
6+
const updateExe = path.resolve(path.dirname(process.execPath), 'Update.exe');
77
spawn(updateExe, args, {
88
detached: true
99
}).on('close', done);

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "electron/src/electron-main.js",
5-
"version": "0.9.4",
5+
"version": "0.9.5",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "Vector Creations Ltd.",
88
"repository": {
@@ -67,7 +67,7 @@
6767
"highlight.js": "^9.0.0",
6868
"linkifyjs": "^2.1.3",
6969
"matrix-js-sdk": "0.7.2",
70-
"matrix-react-sdk": "0.8.3",
70+
"matrix-react-sdk": "0.8.4",
7171
"modernizr": "^3.1.0",
7272
"q": "^1.4.1",
7373
"react": "^15.4.0",

‎src/vector/index.js‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,20 @@ var onNewScreen = function(screen) {
136136
// click back to the client having registered.
137137
// It's up to us to recognise if we're loaded with
138138
// this URL and tell MatrixClient to resume registration.
139+
//
140+
// If we're in electron, we should never pass through a file:// URL otherwise
141+
// the identity server will try to 302 the browser to it, which breaks horribly.
142+
// so in that instance, hardcode to use riot.im/app for now instead.
139143
var makeRegistrationUrl = function() {
140-
return window.location.protocol + '//' +
141-
window.location.host +
142-
window.location.pathname +
143-
'#/register';
144+
if (window.location.protocol === "file:") {
145+
return 'https://riot.im/app/#/register';
146+
}
147+
else {
148+
return window.location.protocol + '//' +
149+
window.location.host +
150+
window.location.pathname +
151+
'#/register';
152+
}
144153
}
145154

146155
window.addEventListener('hashchange', onHashChange);

0 commit comments

Comments
 (0)