Michael Telatynski
6ec613c2c2
Convert various things to Typescript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-20 19:56:54 +01:00
Travis Ralston
6d99c08e59
Merge pull request #13666 from vector-im/travis/dispatcher-types
...
Move dispatcher references in support of TypeScript conversion
2020-05-18 23:22:35 -06:00
Travis Ralston
a21d6e651f
Move dispatcher references in support of TypeScript conversion
...
See https://github.com/matrix-org/matrix-react-sdk/pull/4593
2020-05-13 21:15:30 -06:00
Michael Telatynski
6348b17e23
Pass screenAfterLogin through SSO in the callback url
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-13 06:24:05 +01:00
J. Ryan Stinnett
1ad54a4dae
Tweak default device name to be more compact
...
Fixes https://github.com/vector-im/riot-web/issues/13458
2020-04-30 16:50:01 +01:00
Michael Telatynski
a77ed6e844
Merge branch 'develop' into t3chguy/poc_riot_desktop_sso_multi_profile
2020-04-14 17:03:00 +01:00
Michael Telatynski
2346829055
Add riot-desktop shortcuts for forward/back matching browsers&slack
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-11 18:58:00 +01:00
Michael Telatynski
15bb819c8a
Instead of encrypting, pass the HS an opaque token which we locally resolve in a map to our profile data
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 21:17:37 +01:00
Michael Telatynski
6fdeca93b6
Make the riot-desktop callback args more generic and encrypt the args
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-09 16:21:52 +01:00
Michael Telatynski
8ca9e4ccb1
Fix Electron SSO handling to support multiple profiles
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-04 00:22:15 +01:00
Michael Telatynski
c1da3bf537
Fix Electron mac-specific shortcut being registered on Web too.
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-03 13:01:28 +01:00
Michael Telatynski
3d266cb237
Register Mac electron specific Cmd+, shortcut to User Settings
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-03-19 23:42:10 +00:00
Damir Jelić
20a89d67cb
ElectronPlatform: Add support to remove events from the event index.
2020-03-12 11:51:34 +01:00
Michael Telatynski
09ed0e781a
Update copy for SSO modal
2020-03-02 20:04:31 +00:00
Michael Telatynski
178c61dbf7
fix typo
2020-03-02 15:01:06 +00:00
Michael Telatynski
c197661be0
riot-desktop open SSO in browser so user doesn't have to auth twice
2020-03-02 14:59:55 +00:00
Michael Telatynski
af0b57bcda
make BasePlatform::setLanguage sync, handle promises internally
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-25 10:57:41 +00:00
Michael Telatynski
5117efaf98
Notify electron of language changes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-24 17:14:23 +00:00
Michael Telatynski
5cc0cef06c
Use Persistent Storage where possible
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-20 00:38:09 +00:00
Damir Jelić
7aff020d4d
Merge branch 'poljar/seshat-ui' into develop
2020-01-24 14:40:54 +01:00
Damir Jelić
e1e3bba290
ElectronPlatform: Replace the indexSize method with the getStats method.
2020-01-21 13:35:29 +01:00
Damir Jelić
e556bb242f
ElectronPlatform: Add the indexSize method.
2020-01-21 13:35:29 +01:00
Damir Jelić
a2e256b4c9
ElectronPlatform: Add the ability to load file events from the event index.
2020-01-17 10:11:57 +01:00
Travis Ralston
17e332bb48
Import from src/ for the react-sdk and js-sdk
...
We compile directly for accuracy of sourcemaps.
2019-12-23 20:02:11 -07:00
David Baker
89d622b8b2
Remove the code that calls the origin migrator
...
This will have done its job now, everyone's had long enough to
install a newer version of Riot and migrate to the new origin.
Laves the code on the backend that handles it for the time being,
as per comment.
2019-12-09 11:57:43 +00:00
Damir Jelić
222fea969d
Merge branch 'poljar/seshat-pr' into develop
2019-11-26 18:47:58 +01:00
Michael Telatynski
eac6c46d28
Merge branches 'develop' and 't3chguy/remove_bluebird' of https://github.com/vector-im/riot-web into t3chguy/remove_bluebird
2019-11-22 14:00:02 +00:00
Damir Jelić
137bedb3f9
ElectronPlatform: Update the path for the BaseEventIndexManager class.
2019-11-19 13:34:00 +01:00
Damir Jelić
73b302f432
ElectronPlatform: Fix some type annotations.
2019-11-19 13:34:00 +01:00
Damir Jelić
4a25252626
ElectronPlatform: Rename the SeshatIndexerManager.
2019-11-19 13:34:00 +01:00
Damir Jelić
dd2c210cfb
electron-main: Rework the event index initialization and deletion.
2019-11-14 16:14:48 +01:00
Damir Jelić
7147af8f80
ElectronPlatform: Don't scope the event index per user.
2019-11-14 14:14:59 +01:00
Damir Jelić
c3c5756c7a
ElectronPlatform: Implement the EventIndexManager for Seshat.
2019-11-13 15:55:07 +01:00
David Baker
7af68bddea
Remove the 'auto hide menu bar' option on Mac
...
The menu bar is at the top of the screen on Mac so this setting
does absolutely nothing.
2019-11-05 20:31:08 +00:00
Michael Telatynski
10e1d9093e
transform-async-to-promises: get rid of bluebird
2019-11-04 12:46:28 +00:00
Michael Telatynski
9820e59559
Merge hide-to-tray-icon with show-tray-icon
2019-10-30 14:32:28 +00:00
Michael Telatynski
1498872214
Add ability to hide tray icon on non-Mac (which has no tray icon)
2019-10-29 11:37:42 +00:00
Damir Jelić
71023ae9df
ElectronPlatform: Fix lint errors.
2019-10-11 17:17:24 +02:00
Damir Jelić
1dbdd0a366
ElectronPlatform: Add support for a event index using Seshat.
2019-10-11 16:05:14 +02:00
David Baker
57672ad384
Request persistent storage on Electron
...
It's still not 100% clear whether storage is always persistent on
Electron, but we seem to be getting reports of it being deleted in
the wild on Electron, so let's try calling the API to request
persistent storage. It won't pop up a dialog on Electron. In the
worst case it will give us some logging so we know what the API calls
return.
We could do this on non-desktop too but it's a bit of a mess because
Firefox prompts the user but Chrome makes a decision itself based on
how much the user visits the site.
2019-10-04 12:17:01 +01:00
Michael Telatynski
509839e79e
Allow setting electron autoHideMenuBar and persist it
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-05 11:58:16 +01:00
Michael Telatynski
974797648f
Move config-getting to VectorBasePlatform
...
in Electron get config via IPC from main process
which has access to the "local" config.json override file
and can make people happy :D
Remove bunch of duplicated code,
and move comments around to put them in the right place
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-06-26 21:08:04 +01:00
Travis Ralston
c5461b4509
Don't try and render null avatars in desktop notifications
...
as much fun as http://localhost:8080/null is to see
2019-05-30 20:04:16 -06:00
Michael Telatynski
5a3b9ae454
more matching
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-02-24 01:38:21 +00:00
Michael Telatynski
717495c4e0
specify return types to match superclass
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-02-24 01:21:18 +00:00
Michael Telatynski
714570443d
Allow configuration of whether closing window closes or minimizes to tray
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-02-24 01:08:01 +00:00
David Baker
0022834af4
Merge pull request #8241 from vector-im/dbkr/fix_platform_name
...
Fix device names on desktop
2019-01-23 17:15:56 +00:00
David Baker
9aad7042a2
Fix device names on desktop
...
Apparently I really had a bad day with includes / indexOf
2019-01-23 16:53:50 +00:00
David Baker
a5ed5be3cf
Fix literal </> in notifications
...
Apparently I couldn't decide whether I was writing indexOf(...) > -1
or .includes()
Fixes https://github.com/vector-im/riot-web/issues/8230
2019-01-23 14:47:31 +00:00
David Baker
751a1dc543
Add tool to migrate logins between origins
...
App checks at startup for an existing session, if there isn't one,
it will start the tool to check for a login in the file:// origin.
If there is one, it will copy the login over to the vector://vector
origin.
In principle this could also be used to migrate logins between
other origins on the web if this were ever required.
This includes a minified copy of the browserified js-sdk with
a getAllEndToEndSessions() function added to the crypto store
(https://github.com/matrix-org/matrix-js-sdk/pull/812 ). This is
not great, but for a short-lived tool this seems better than
introducing more entry points into webpack only used for the
electron app.
2018-12-21 19:14:25 +00:00