Skip to content

Commit d347ab0

Browse files
committed
Merge branches 'develop' and 't3chguy/react16' of github.com:vector-im/riot-web into t3chguy/react16
2 parents 6d7c4c4 + 906045b commit d347ab0

6 files changed

Lines changed: 156 additions & 25 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
Changes in [1.3.2](https://github.com/vector-im/riot-web/releases/tag/v1.3.2) (2019-08-05)
2+
==========================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.3.1...v1.3.2)
4+
5+
* Updated react-sdk for deactivated account error message on login
6+
7+
Changes in [1.3.1](https://github.com/vector-im/riot-web/releases/tag/v1.3.1) (2019-08-05)
8+
==========================================================================================
9+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.3.1-rc.1...v1.3.1)
10+
11+
* Updated js-sdk for notifications fix and react-sdk for registration fix
12+
13+
Changes in [1.3.1-rc.1](https://github.com/vector-im/riot-web/releases/tag/v1.3.1-rc.1) (2019-07-31)
14+
====================================================================================================
15+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.3.0...v1.3.1-rc.1)
16+
17+
* Upgrade to JS SDK 2.3.0-rc.1 and React SDK 1.5.0-rc.1
18+
* Update from Weblate
19+
[\#10436](https://github.com/vector-im/riot-web/pull/10436)
20+
* Describe our existing features better in documentation
21+
[\#10418](https://github.com/vector-im/riot-web/pull/10418)
22+
* Upgrade to Electron 5
23+
[\#10392](https://github.com/vector-im/riot-web/pull/10392)
24+
* Remove edits and reactions feature flags from docs and config
25+
[\#10363](https://github.com/vector-im/riot-web/pull/10363)
26+
* Cachebust config file requests
27+
[\#10349](https://github.com/vector-im/riot-web/pull/10349)
28+
* Convert install-app-deps to subcommand
29+
[\#10334](https://github.com/vector-im/riot-web/pull/10334)
30+
* Add riot.im configuration files
31+
[\#10327](https://github.com/vector-im/riot-web/pull/10327)
32+
* Require descriptions in mxSendRageshake and remove infinite loop in issue
33+
templates
34+
[\#10321](https://github.com/vector-im/riot-web/pull/10321)
35+
* Remove unused disable_identity_server config flag
36+
[\#10322](https://github.com/vector-im/riot-web/pull/10322)
37+
* Verify i18n in CI
38+
[\#10320](https://github.com/vector-im/riot-web/pull/10320)
39+
140
Changes in [1.3.0](https://github.com/vector-im/riot-web/releases/tag/v1.3.0) (2019-07-18)
241
==========================================================================================
342
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.3.0-rc.3...v1.3.0)

‎electron_app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "src/electron-main.js",
5-
"version": "1.3.0",
5+
"version": "1.3.2",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "New Vector Ltd.",
88
"dependencies": {

‎electron_app/src/electron-main.js‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ limitations under the License.
2323
const checkSquirrelHooks = require('./squirrelhooks');
2424
if (checkSquirrelHooks()) return;
2525

26-
const argv = require('minimist')(process.argv);
26+
const argv = require('minimist')(process.argv, {
27+
alias: {help: "h"},
28+
});
29+
2730
const {app, ipcMain, powerSaveBlocker, BrowserWindow, Menu, autoUpdater, protocol} = require('electron');
2831
const AutoLaunch = require('auto-launch');
2932
const path = require('path');
@@ -37,6 +40,19 @@ const { migrateFromOldOrigin } = require('./originMigrator');
3740
const windowStateKeeper = require('electron-window-state');
3841
const Store = require('electron-store');
3942

43+
if (argv["help"]) {
44+
console.log("Options:");
45+
console.log(" --profile-dir {path}: Path to where to store the profile.");
46+
console.log(" --profile {name}: Name of alternate profile to use, allows for running multiple accounts.");
47+
console.log(" --devtools: Install and use react-devtools and react-perf.");
48+
console.log(" --no-update: Disable automatic updating.");
49+
console.log(" --hidden: Start the application hidden in the system tray.");
50+
console.log(" --help: Displays this help message.");
51+
console.log("And more such as --proxy, see:" +
52+
"https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md");
53+
app.exit();
54+
}
55+
4056
// boolean flag set whilst we are doing one-time origin migration
4157
// We only serve the origin migration script while we're actually
4258
// migrating to mitigate any risk of it being used maliciously.
@@ -156,6 +172,14 @@ ipcMain.on('ipcCall', async function(ev, payload) {
156172
case 'setMinimizeToTrayEnabled':
157173
store.set('minimizeToTray', global.minimizeToTray = args[0]);
158174
break;
175+
case 'getAutoHideMenuBarEnabled':
176+
ret = global.mainWindow.isMenuBarAutoHide();
177+
break;
178+
case 'setAutoHideMenuBarEnabled':
179+
store.set('autoHideMenuBar', args[0]);
180+
global.mainWindow.setAutoHideMenuBar(args[0]);
181+
global.mainWindow.setMenuBarVisibility(!args[0]);
182+
break;
159183
case 'getAppVersion':
160184
ret = app.getVersion();
161185
break;
@@ -320,7 +344,7 @@ app.on('ready', () => {
320344
mainWindow = global.mainWindow = new BrowserWindow({
321345
icon: iconPath,
322346
show: false,
323-
autoHideMenuBar: true,
347+
autoHideMenuBar: store.get('autoHideMenuBar', true),
324348

325349
x: mainWindowState.x,
326350
y: mainWindowState.y,

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "electron_app/src/electron-main.js",
5-
"version": "1.3.0",
5+
"version": "1.3.2",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "New Vector Ltd.",
88
"repository": {
@@ -74,8 +74,8 @@
7474
"gemini-scrollbar": "github:matrix-org/gemini-scrollbar#b302279",
7575
"gfm.css": "^1.1.2",
7676
"highlight.js": "^9.13.1",
77-
"matrix-js-sdk": "2.2.0",
78-
"matrix-react-sdk": "1.4.0",
77+
"matrix-js-sdk": "2.3.0",
78+
"matrix-react-sdk": "1.5.1",
7979
"modernizr": "^3.6.0",
8080
"olm": "https://packages.matrix.org/npm/olm/olm-3.1.0.tgz",
8181
"prop-types": "^15.7.2",

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,31 +174,43 @@ export default class ElectronPlatform extends VectorBasePlatform {
174174
}
175175

176176
async getAppVersion(): Promise<string> {
177-
return await this._ipcCall('getAppVersion');
177+
return this._ipcCall('getAppVersion');
178178
}
179179

180180
supportsAutoLaunch(): boolean {
181181
return true;
182182
}
183183

184184
async getAutoLaunchEnabled(): boolean {
185-
return await this._ipcCall('getAutoLaunchEnabled');
185+
return this._ipcCall('getAutoLaunchEnabled');
186186
}
187187

188188
async setAutoLaunchEnabled(enabled: boolean): void {
189-
return await this._ipcCall('setAutoLaunchEnabled', enabled);
189+
return this._ipcCall('setAutoLaunchEnabled', enabled);
190+
}
191+
192+
supportsAutoHideMenuBar(): boolean {
193+
return true;
194+
}
195+
196+
async getAutoHideMenuBarEnabled(): boolean {
197+
return this._ipcCall('getAutoHideMenuBarEnabled');
198+
}
199+
200+
async setAutoHideMenuBarEnabled(enabled: boolean): void {
201+
return this._ipcCall('setAutoHideMenuBarEnabled', enabled);
190202
}
191203

192204
supportsMinimizeToTray(): boolean {
193205
return true;
194206
}
195207

196208
async getMinimizeToTrayEnabled(): boolean {
197-
return await this._ipcCall('getMinimizeToTrayEnabled');
209+
return this._ipcCall('getMinimizeToTrayEnabled');
198210
}
199211

200212
async setMinimizeToTrayEnabled(enabled: boolean): void {
201-
return await this._ipcCall('setMinimizeToTrayEnabled', enabled);
213+
return this._ipcCall('setMinimizeToTrayEnabled', enabled);
202214
}
203215

204216
async canSelfUpdate(): boolean {

‎yarn.lock‎

Lines changed: 70 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ commander@2.17.x:
22792279
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
22802280
integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==
22812281

2282-
commander@^2.11.0, commander@^2.20.0:
2282+
commander@^2.11.0, commander@^2.19.0, commander@^2.20.0:
22832283
version "2.20.0"
22842284
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
22852285
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
@@ -2896,6 +2896,18 @@ di@^0.0.1:
28962896
resolved "https://registry.yarnpkg.com/di/-/di-0.0.1.tgz#806649326ceaa7caa3306d75d985ea2748ba913c"
28972897
integrity sha1-gGZJMmzqp8qjMG112YXqJ0i6kTw=
28982898

2899+
diff-dom@^4.1.3:
2900+
version "4.1.3"
2901+
resolved "https://registry.yarnpkg.com/diff-dom/-/diff-dom-4.1.3.tgz#5572dab5c549c7da05a7662303b471d7ea4b0963"
2902+
integrity sha512-wiM06O2BN3THf9Ge86IYuTek+OlKLSwwuwjm3XfSr7SGp7Ls9XXztpr4tp9S54RhX/rXqq94LdeBG+MMpDPDig==
2903+
dependencies:
2904+
rollup-plugin-terser "^4.0.3"
2905+
2906+
diff-match-patch@^1.0.4:
2907+
version "1.0.4"
2908+
resolved "https://registry.yarnpkg.com/diff-match-patch/-/diff-match-patch-1.0.4.tgz#6ac4b55237463761c4daf0dc603eb869124744b1"
2909+
integrity sha512-Uv3SW8bmH9nAtHKaKSanOQmj2DnlH65fUpcrMdfdaOxUG02QQ4YGZ8AE7kKOMisF7UqvOlGKVYWRvezdncW9lg==
2910+
28992911
diff@3.5.0:
29002912
version "3.5.0"
29012913
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"
@@ -3183,7 +3195,7 @@ emoji-regex@^7.0.1:
31833195
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156"
31843196
integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==
31853197

3186-
emojibase-data@^4.0.0:
3198+
emojibase-data@^4.0.1:
31873199
version "4.0.1"
31883200
resolved "https://registry.yarnpkg.com/emojibase-data/-/emojibase-data-4.0.1.tgz#7ff28250a9b753f058de313ac4654b37bbf7081b"
31893201
integrity sha512-U20Xg5TzdJ1pQnfJUT3rf9vqA9jL0GLALP8YsypyNdud2h5CWXUwpRRicRl8y0lOnABQbheLv3ohwt1+Mn8iTw==
@@ -5308,6 +5320,14 @@ isstream@~0.1.2:
53085320
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
53095321
integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=
53105322

5323+
jest-worker@^24.0.0:
5324+
version "24.6.0"
5325+
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.6.0.tgz#7f81ceae34b7cde0c9827a6980c35b7cdc0161b3"
5326+
integrity sha512-jDwgW5W9qGNvpI1tNnvajh0a5IE/PuGLFmHk6aR/BZFz8tSgGw17GsDPXAJ6p91IvYDjOw8GpFbvvZGAK+DPQQ==
5327+
dependencies:
5328+
merge-stream "^1.0.1"
5329+
supports-color "^6.1.0"
5330+
53115331
jquery@^3.3.1:
53125332
version "3.4.1"
53135333
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
@@ -5852,10 +5872,10 @@ math-random@^1.0.1:
58525872
resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c"
58535873
integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==
58545874

5855-
matrix-js-sdk@2.2.0:
5856-
version "2.2.0"
5857-
resolved "https://registry.yarnpkg.com/matrix-js-sdk/-/matrix-js-sdk-2.2.0.tgz#c96a2caa4c92e5998443027579d7e76d4bcd4d21"
5858-
integrity sha512-gab7wuscgTKbXY5x136t9qSnDbOuq785ezd++NoFLEau0YjDos0YKolAm0TValUC9LY30CoVqqMfyPJ68CMezQ==
5875+
matrix-js-sdk@2.3.0:
5876+
version "2.3.0"
5877+
resolved "https://registry.yarnpkg.com/matrix-js-sdk/-/matrix-js-sdk-2.3.0.tgz#ed04172add2e31c532dc87e2f38c26c2a63191c6"
5878+
integrity sha512-jeswie7cWK7+XxcD+pQ7LplWnWkOQDa+x6y7FUUnxCdEvaj38cE5Obo9bPMjFgOln2hISlLdR8fzMNE9F4oUJA==
58595879
dependencies:
58605880
another-json "^0.2.0"
58615881
babel-runtime "^6.26.0"
@@ -5876,10 +5896,10 @@ matrix-mock-request@^1.2.3:
58765896
bluebird "^3.5.0"
58775897
expect "^1.20.2"
58785898

5879-
matrix-react-sdk@1.4.0:
5880-
version "1.4.0"
5881-
resolved "https://registry.yarnpkg.com/matrix-react-sdk/-/matrix-react-sdk-1.4.0.tgz#dd7a6b9f73355174eeba37ce4ae4eb8bba98d57d"
5882-
integrity sha512-kZIkTU4tYNzOJX0hcWRWiyswuHJBP2svnbDg+GvCXFsDKZM566G3Hg5gU11QFVFAmQokO3DVazpQi6nlKt5dCg==
5899+
matrix-react-sdk@1.5.0:
5900+
version "1.5.0"
5901+
resolved "https://registry.yarnpkg.com/matrix-react-sdk/-/matrix-react-sdk-1.5.0.tgz#4db5dacd8b7db54b6abcdb115466944f525a7943"
5902+
integrity sha512-qhQRXCOCYfsqvASVlqhGNLwJWTEWUWh6igSFvMH/0XvurMQukEASzSKTvEeyrI4m+xXCwaA6u4Psd9nSLWwSUQ==
58835903
dependencies:
58845904
babel-plugin-syntax-dynamic-import "^6.18.0"
58855905
babel-runtime "^6.26.0"
@@ -5890,7 +5910,9 @@ matrix-react-sdk@1.4.0:
58905910
classnames "^2.1.2"
58915911
commonmark "^0.28.1"
58925912
counterpart "^0.18.0"
5893-
emojibase-data "^4.0.0"
5913+
diff-dom "^4.1.3"
5914+
diff-match-patch "^1.0.4"
5915+
emojibase-data "^4.0.1"
58945916
emojibase-regex "^3.0.0"
58955917
file-saver "^1.3.3"
58965918
filesize "3.5.6"
@@ -5906,7 +5928,7 @@ matrix-react-sdk@1.4.0:
59065928
linkifyjs "^2.1.6"
59075929
lodash "^4.17.14"
59085930
lolex "2.3.2"
5909-
matrix-js-sdk "2.2.0"
5931+
matrix-js-sdk "2.3.0"
59105932
optimist "^0.6.1"
59115933
pako "^1.0.5"
59125934
png-chunks-extract "^1.0.0"
@@ -5990,6 +6012,13 @@ merge-descriptors@1.0.1:
59906012
resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
59916013
integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=
59926014

6015+
merge-stream@^1.0.1:
6016+
version "1.0.1"
6017+
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-1.0.1.tgz#4041202d508a342ba00174008df0c251b8c135e1"
6018+
integrity sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=
6019+
dependencies:
6020+
readable-stream "^2.0.1"
6021+
59936022
merge2@^1.2.3:
59946023
version "1.2.4"
59956024
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.4.tgz#c9269589e6885a60cf80605d9522d4b67ca646e3"
@@ -7844,6 +7873,16 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
78447873
hash-base "^3.0.0"
78457874
inherits "^2.0.1"
78467875

7876+
rollup-plugin-terser@^4.0.3:
7877+
version "4.0.4"
7878+
resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-4.0.4.tgz#6f661ef284fa7c27963d242601691dc3d23f994e"
7879+
integrity sha512-wPANT5XKVJJ8RDUN0+wIr7UPd0lIXBo4UdJ59VmlPCtlFsE20AM+14pe+tk7YunCsWEiuzkDBY3QIkSCjtrPXg==
7880+
dependencies:
7881+
"@babel/code-frame" "^7.0.0"
7882+
jest-worker "^24.0.0"
7883+
serialize-javascript "^1.6.1"
7884+
terser "^3.14.1"
7885+
78477886
run-async@^2.2.0:
78487887
version "2.3.0"
78497888
resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0"
@@ -7993,7 +8032,7 @@ send@0.17.1:
79938032
range-parser "~1.2.1"
79948033
statuses "~1.5.0"
79958034

7996-
serialize-javascript@^1.7.0:
8035+
serialize-javascript@^1.6.1, serialize-javascript@^1.7.0:
79978036
version "1.7.0"
79988037
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.7.0.tgz#d6e0dfb2a3832a8c94468e6eb1db97e55a192a65"
79998038
integrity sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA==
@@ -8322,6 +8361,14 @@ source-map-support@^0.5.12, source-map-support@^0.5.13, source-map-support@~0.5.
83228361
buffer-from "^1.0.0"
83238362
source-map "^0.6.0"
83248363

8364+
source-map-support@~0.5.10:
8365+
version "0.5.13"
8366+
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932"
8367+
integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==
8368+
dependencies:
8369+
buffer-from "^1.0.0"
8370+
source-map "^0.6.0"
8371+
83258372
source-map-url@^0.4.0:
83268373
version "0.4.0"
83278374
resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
@@ -8707,7 +8754,16 @@ terser-webpack-plugin@^1.1.0:
87078754
webpack-sources "^1.4.0"
87088755
worker-farm "^1.7.0"
87098756

8710-
terser@^4.1.2:
8757+
terser@^3.14.1:
8758+
version "3.17.0"
8759+
resolved "https://registry.yarnpkg.com/terser/-/terser-3.17.0.tgz#f88ffbeda0deb5637f9d24b0da66f4e15ab10cb2"
8760+
integrity sha512-/FQzzPJmCpjAH9Xvk2paiWrFq+5M6aVOf+2KRbwhByISDX/EujxsK+BAvrhb6H+2rtrLCHK9N01wO014vrIwVQ==
8761+
dependencies:
8762+
commander "^2.19.0"
8763+
source-map "~0.6.1"
8764+
source-map-support "~0.5.10"
8765+
8766+
terser@^4.0.0:
87118767
version "4.1.2"
87128768
resolved "https://registry.yarnpkg.com/terser/-/terser-4.1.2.tgz#b2656c8a506f7ce805a3f300a2ff48db022fa391"
87138769
integrity sha512-jvNoEQSPXJdssFwqPSgWjsOrb+ELoE+ILpHPKXC83tIxOlh2U75F1KuB2luLD/3a6/7K3Vw5pDn+hvu0C4AzSw==

0 commit comments

Comments
 (0)