Commit graph

678 commits

Author SHA1 Message Date
J. Ryan Stinnett
27a92a5c89 Add RegExp dotAll feature test
As mentioned in
https://github.com/vector-im/element-web/issues/16020#issuecomment-774384598,
we're depending on the `dotAll` / `s` regex feature. This adds a test so
browsers without this see an error screen.
2021-02-08 16:44:59 +00:00
Michael Telatynski
d5a824d6dd
Merge pull request #16292 from vector-im/t3chguy/sso_fixes
Use history replaceState instead of redirect for SSO flow
2021-01-29 13:29:02 +00:00
J. Ryan Stinnett
0f3623393f Fix typing errors after upgrades 2021-01-27 14:35:02 +00:00
Michael Telatynski
d47948fb7b Improve SSO auth flow
Use replaceState instead of a redirect to strip the loginToken
Put user into the same post-auth flows of E2ESetup
Skip UIA prompt in this post-auth flow, happy path is a server grace period
2021-01-27 12:50:14 +00:00
Travis Ralston
5cb323feed Supply server_name for optional federation-capable Jitsi auth
See https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification/pull/3
2021-01-19 10:23:23 -07:00
J. Ryan Stinnett
0bbcda09af Move into constructor 2021-01-15 12:35:42 +00:00
J. Ryan Stinnett
e077d9ca5f Move service worker into platform 2021-01-15 12:25:21 +00:00
J. Ryan Stinnett
87e67d8168 Skip the service worker for Electron
At the moment, there's no point in installing the empty service worker on
Electron.

Fixes https://github.com/vector-im/element-web/issues/16008
2021-01-15 11:05:27 +00:00
J. Ryan Stinnett
58eca1aa7d Use isolated IPC API
This adjusts to match changes on the desktop side where we now use Electron's
context isolation feature to expose only the IPC channels and methods we
actually expect to use.
2021-01-13 15:39:18 +00:00
Alexandru M Stan
35d1c0d980 webplatform: Fix notification closing
After a notification arrives, when the user focuses on element, the
notification never goes away (unless directly interacted with), this was a bug.

displayNotification was never returning the notification handle, which means
that matrix-react-sdk later on had no way to .close it.

Closes #16026

Signed-off-by: Alexandru M Stan <alex@hypertriangle.com>
2020-12-24 02:01:40 -08:00
Hubert Chathi
e0e29996e0
Update to new API from matrix-react-sdk#5483 (#15942) 2020-12-15 12:57:17 -05:00
Travis Ralston
d0b9b211c9 Fix an important semicolon 2020-12-07 14:46:56 -07:00
Michael Telatynski
a63bd875bc
Merge pull request #15771 from vector-im/t3chguy/socials
Extend Platform to support idpId for SSO flows
2020-12-02 15:48:56 +00:00
J. Ryan Stinnett
d8e0ea5791 Include KaTeX CSS as a dependency
This changes the KaTeX CSS inclusion to function just like the other bits of the
CSS that we import from dependencies.
2020-11-27 12:18:24 +00:00
J. Ryan Stinnett
f1e89bf833 Replace various instances of Riot with Element 2020-11-25 17:01:19 +00:00
J. Ryan Stinnett
d05c022d4f Rebrand some GitHub links 2020-11-25 14:16:55 +00:00
Michael Telatynski
1e1a14c9a9 Extend Platform to support idpId for SSO flows 2020-11-19 11:07:44 +00:00
Michael Telatynski
0bdf979c46 fix the Jitsi bg colour to not be transparent as the app colours may be anything and bleed through 2020-10-27 11:26:41 +00:00
Michael Telatynski
7c895bd8c0 Fix theme variable handling with invalid values 2020-10-27 11:26:41 +00:00
Michael Telatynski
593a56e2d7 Jitsi accept theme variable and restyle
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-19 19:40:53 +01:00
J. Ryan Stinnett
dfb1579625 Adjust for new widget messaging APIs
As part of changing to the `events` package, the API surface changed slightly.

Related to https://github.com/vector-im/element-web/issues/15493
2020-10-19 16:43:55 +01:00
Travis Ralston
917a85ead9 Don't fatally end the Jitsi widget when it's not being used as a widget 2020-10-14 16:16:08 -06:00
Damir Jelić
0507cd2d90 electron-platform: Use camel case for the user/device id. 2020-10-13 17:04:40 +02:00
Damir Jelić
5350c5e551 electron-platform: Pass the user/devce id pair when initializing the event index. 2020-10-13 16:36:38 +02:00
Travis Ralston
5f353c4907
Merge pull request #15102 from vector-im/travis/widget-api
Switch to using the Widget API SDK for Jitsi widgets
2020-10-01 10:16:11 -06:00
Travis Ralston
9cb823b210 Fix join button 2020-10-01 09:59:13 -06:00
Michael Telatynski
cfee4c925a Revert "Attempt to fix tests some more"
This reverts commit c76a5f2c

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:05:07 +01:00
Michael Telatynski
1edbe36547 Revert "Tidy up Service Worker, only run Workbox in production"
This reverts commit c47532fe

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:04:32 +01:00
Michael Telatynski
87c42934ea Revert "Disable workbox when running in webpack dev server, not in dev mode"
This reverts commit 11e676ce

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:04:21 +01:00
Michael Telatynski
daa755017e Revert "consolidate"
This reverts commit aa2f3918

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-01 14:04:11 +01:00
Travis Ralston
cdf9547220 Appease the linter 2020-09-30 20:51:31 -06:00
Travis Ralston
7b93c56bd0 Fix custom hangup button 2020-09-30 20:09:42 -06:00
Michael Telatynski
ca78985abc
Merge pull request #15345 from vector-im/t3chguy/fix/workbox
Disable workbox when running in webpack dev server, not in dev mode
2020-09-30 19:26:31 +01:00
Michael Telatynski
aa2f3918cc consolidate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-30 17:36:57 +01:00
Michael Telatynski
11e676cee0 Disable workbox when running in webpack dev server, not in dev mode
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-30 17:35:12 +01:00
Qt Resynth
10d6fbaef7
Update Riot -> Element in index.ts 2020-09-30 11:10:35 +00:00
Travis Ralston
c56368cdbb Fix hangup button handler 2020-09-29 13:20:16 -06:00
Travis Ralston
15a8ee6663 Merge branch 'develop' into travis/widget-api 2020-09-29 13:17:18 -06:00
Travis Ralston
20c6e6dd73
Merge pull request #15316 from vector-im/travis/jitsi-widget
Give the Jitsi widget an icon to help with discovery
2020-09-29 11:06:42 -06:00
Travis Ralston
7d3ccb6242
Merge pull request #15219 from vector-im/travis/ft-sep1620/04-jitsi-hangup
Jitsi widget wrapper updates for hangup button
2020-09-29 11:06:28 -06:00
Travis Ralston
7ef0702df4 re-todo 2020-09-29 11:04:08 -06:00
Travis Ralston
a1e6b019d2 Give the Jitsi widget an icon to help with discovery
We think users will be expecting to follow a series of icons into their conference, so we'll remind them here of what is going on with a giant icon.

This does not change depending on the call type because the jitsi widget doesn't understand the call type anyways - it's always a video conference.
2020-09-29 11:01:26 -06:00
Travis Ralston
97afe18310 Merge branch 'develop' into travis/widget-api 2020-09-28 21:09:10 -06:00
Michael Telatynski
aa9b517664
Merge pull request #15271 from vector-im/t3chguy/fix/15265
Tidy up Service Worker, only run Workbox in production
2020-09-28 16:47:15 +01:00
Travis Ralston
c114932da0 Merge branch 'develop' into travis/widget-api 2020-09-25 09:38:52 -06:00
David Baker
4eb5bb2bae
Merge pull request #15274 from vector-im/dbkr/remove_conferencehandler
Remove conference handler
2020-09-25 15:52:25 +01:00
Travis Ralston
82749c3de3 Fix Jitsi for new widget-api 2020-09-24 13:25:59 -06:00
David Baker
c988988a70 This is unused now 2020-09-24 16:44:05 +01:00
David Baker
b31bf6cfca Remove conference handler 2020-09-24 16:19:00 +01:00
Michael Telatynski
c47532fe2a Tidy up Service Worker, only run Workbox in production
Moves ServiceWorker load into Platform so its not done by Electron

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-24 13:01:34 +01:00