Commit Graph
814 Commits
Author SHA1 Message Date
RobinandGitHub d36dcd2766 Patch Jitsi logs into rageshakes (#22270)
* Patch Jitsi logs into rageshakes

* Remove unused import

* Fix types
2022-05-19 09:24:39 +01:00
Michael TelatynskiandGitHub ca98529bd2 Improve code as per Sonar suggestions (#22224) 2022-05-16 16:47:12 +01:00
RobinandGitHub cdf95ab8b7 Fix video rooms sometimes connecting muted when they shouldn't (#22125) 2022-05-09 18:02:18 -04:00
RobinandGitHub 1783645108 Avoid flashing the 'join conference' button at the user in video rooms (#22120) 2022-05-09 15:22:45 +01:00
RobinandGitHub 9cb0185ec2 Fully close Jitsi conferences on errors (#22060)
By not closing Jitsi fully when an error occurs, it could get stuck in
PiP mode with no way to dismiss.
2022-05-05 05:51:00 -04:00
RobinandGitHub f733e2af87 Fix Jitsi Meet getting wedged at startup in some cases (#21995) 2022-04-30 10:23:36 -04:00
RobinandGitHub b5336c9a4d Fix camera getting muted when disconnecting from a video room (#21958) 2022-04-29 08:51:43 -04:00
James SalterandGitHub 2ffb3a1180 Pass the version in the updated param to attempt to cache bust (#21912) 2022-04-25 14:15:21 +01:00
RobinandGitHub b41e215112 Show a lobby screen in video rooms (#21746)
* No longer skip the prejoin screen in video rooms

* Enable joining with specific devices

* Start widget API listeners earlier

so that they're instantly ready for use, rather than being stuck behind
the config loading

* Revert "Start widget API listeners earlier"

This reverts commit 2c1bb08832a77fe9f981a24f8349fd707214eb0a.

* Tell the client when the Jitsi wrapper is ready to receive events

* Fix video rooms getting stuck on Jitsi Meet's prejoin screen
2022-04-20 11:03:28 -04:00
ff89eef01a Ensure updated=1 is set as the query string before any # (#21605)
* Ensure updated=1 is set as the query string before any #

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-04-20 15:12:24 +01:00
RobinandGitHub ef1d90ad41 Handle forced disconnects from Jitsi (#21697) 2022-04-06 13:08:58 -04:00
Travis Ralston d39ae8a91b Merge branch 'develop' into travis/remove-skinning 2022-04-05 10:42:48 -06:00
RobinandGitHub eab8a19ec7 Avoid flashing the Jitsi prejoin screen at the user before skipping it (#21665) 2022-04-05 11:32:26 -04:00
RobinandGitHub b79133c694 Fix stuck persistence of Jitsi widgets (#21650)
The hangup event may or may not be handled, so we need to account for
cases where it throws an error.
2022-04-04 07:32:12 -04:00
RobinandGitHub aeb6cddc2f Update video rooms to new design specs (#21623)
* "Voice room" → "video room"

* Customize Jitsi behavior in video rooms
2022-04-01 11:28:47 -04:00
Travis Ralston 0bcb1d18ce Step 10.1: Ensure the js-sdk browser bundle gets pulled
We no longer have implicit imports which would have called this path, so manually call it. We have to disable lint as it doesn't like us doing this, but we only end up with a single entry point.
2022-03-28 13:02:50 -06:00
Travis Ralston 384903361d Step 4: Disable/remove bulk of skinner code 2022-03-28 13:02:50 -06:00
Travis Ralston 585c777878 Step 3.2: Stop using getComponent 2022-03-28 13:02:50 -06:00
RobinandGitHub 6103f4a9d3 Voice rooms prototype (#21476)
* Document voice rooms labs flag

Signed-off-by: Robin Townsend <robin@robin.town>

* Add join and mute handlers to Jitsi wrapper

Signed-off-by: Robin Townsend <robin@robin.town>

* Document voice rooms labs flag

Signed-off-by: Robin Townsend <robin@robin.town>

* Mark voice rooms as in development

Signed-off-by: Robin Townsend <robin@robin.town>

* ack at the end of widget event handlers

Signed-off-by: Robin Townsend <robin@robin.town>

* Move acks back before suspend points

Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-22 16:14:27 -06:00
1384783a77 Update SdkConfig usage to use new translation layer + update config.md docs (#21429)
* Update SdkConfig usage to use new translation layer

* Appease the linter

* WIP refactor of config documentation

* Finish re-writing config.md

* Update surrounding documentation

* Apply suggestions from code review

Co-authored-by: Germain <germains@element.io>

* Textual updates

Co-authored-by: Germain <germains@element.io>
2022-03-18 10:12:44 -06:00
James SalterandGitHub adad5e16c2 Fix page reloading on initial update (#21410)
Remove the hash event listener before reloading the page, as the reload was being swallowed by our router.

Along the way, refactor out routing logic form app.tsx to avoid causing a circular import.
2022-03-16 12:20:06 +00:00
KerryandGitHub f975d85806 fix prefetch (#21320)
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-04 16:48:54 +01:00
James SalterandGitHub 9223d93450 Check for update on load and refresh if available (#21272)
* Reload the page if we're stale on load
* Set updated=1
2022-03-03 14:36:12 +00:00
Šimon BrandnerandGitHub 491999281f Add allowOverridingNativeContextMenus() (#17777) 2022-03-03 10:39:42 +00:00
Michael TelatynskiandGitHub 240c3be014 Mandate use of js-sdk/src/matrix import over js-sdk/src (#21257) 2022-03-01 19:26:22 +00:00
Travis RalstonandGitHub 65adc3ba93 Add a config.json option to skip the built-in Jitsi welcome screen (#21190)
* Add a config.json option to skip the built-in Jitsi welcome screen

Stop-gap for https://github.com/vector-im/element-web/issues/20503

* Spelling
2022-02-28 11:02:03 -07:00
Šimon BrandnerandGitHub 3810b7e329 Keybinding code unification #3 (#21132) 2022-02-23 09:12:06 +00:00
Michael TelatynskiandGitHub 53f6282a53 Add Modernizr check for ResizeObserver (#21124) 2022-02-18 13:48:50 +00:00
Šimon BrandnerandGitHub c275ef6b49 Fix command key missing in keyboard shortcuts tab (#21102) 2022-02-16 15:29:52 +00:00
Šimon BrandnerandGitHub 42416021ad Switch to IPC channel for getDesktopCapturerSources (#21042) 2022-02-11 10:38:35 +00:00
Travis RalstonandGitHub 7078373fbb Support a config option to change the default device name (#20790) 2022-01-28 08:52:43 -07:00
Šimon BrandnerandGitHub 03e776d9c4 Improve the look of the keyboard settings tab (#20595)
* First cut of new keyboard shortcuts

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* i18n

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-01-24 11:33:37 +00:00
KerryandGitHub 85012b287f Persist jitsi only after meeting is joined (#20638)
* persist jitsi only after meeting is joined

Signed-off-by: Kerry Archibald <kerrya@element.io>

* lint + comment
2022-01-20 09:51:14 +01:00
Michael TelatynskiandGitHub 211f480027 Abstract electron download path behind an opaque ID (#20271) 2021-12-21 15:34:57 +00:00
James SalterandGitHub 9e1f393224 Ensure group audio-only calls don't switch on the webcam on join (#20234)
Pass isAudioOnly flag to jitsi SDK
2021-12-17 19:54:57 +11:00
GermainandGitHub 23b21c940c Open thread on native notification click (#20176) 2021-12-15 08:34:54 +00:00
Aaron RandGitHub df84c48d73 Fix imports to work with new lint rules (#19532)
* Add eslint-plugin-import

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Autofix + move comments manually

Signed-off-by: Aaron Raimist <aaron@raim.ist>

* Manual fix

Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 15:57:46 -07:00
KerryandGitHub b155d19934 add aria-hidden and alt for preload svg images (#20113)
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-09 14:23:03 +01:00
James SalterandGitHub b0abbfacd4 Fix Docker build versioning (#20077)
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
* Normalize the version received from the server
2021-12-07 15:11:01 +11:00
James SalterandGitHub 60788da1a3 Normalize the local app version (#20061)
We need to strip the leading v from the local app version in pollForUpdate to ensure it compares correctly the version from the /version request indicating what the latest available version is. Previously, we only stripped the leading in getAppVersion which is used in some other places but not to decide whether an update is available.
2021-12-06 23:12:29 +11:00
Matthew HodgsonandGitHub 9b780e0e60 Simple static location sharing (#19754)
Adds static location share a la [MSC3488](https://github.com/matrix-org/matrix-doc/pull/3488) behind a labs flag, supporting legacy `m.location` `msgtype` too.  Powered by https://github.com/matrix-org/matrix-react-sdk/pull/7135.  Adds maplibre as a dependency.

To make this work, you have to add a valid `map_style_url` to your config.json.
2021-12-06 10:11:06 +00:00
Michael TelatynskiandGitHub 883d8cecaa Improve platform types (#20027) 2021-12-03 11:03:01 +00:00
James SalterandGitHub 194aeac19e Get version from build VERSION variable (#19857)
* Fetch version from VERSION set during build
* When polling for new versions, compare to VERSION set during build
* Strip leading v from version, matching package.sh
2021-11-23 18:42:24 +11:00
David BakerandGitHub 75eab660c2 Remove highlightjs CSS (#19483)
This was completely unnecessary: react-sdk includes appropriate CSS
for highlight.js in its themes. This was actually causing some of
those values to be overridden with silly ones that made text invisible
on the dark theme.

Fixes https://github.com/vector-im/element-web/issues/19476
2021-10-22 18:28:27 +01:00
Travis RalstonandGitHub 004e8edcb2 Deprecate sso_immediate_redirect and add welcome-page only option (#19437)
* Deprecate `sso_immediate_redirect` and add welcome-page only option

The old `sso_immediate_redirect` option is kept in code for backwards compatibility, but is replaced by `sso_redirect_options.immediate`, where a new `on_welcome_page` option is also introduced to only target entry points to the app. 

The path matching is a bit brittle, but still ideal in the sense of not showing UI while the app realizes it needs to redirect.

The new welcome page-only option is fully intended to avoid breaking permalinks and such while still redirecting when needed. In future, other options might be added here to further tune the experience.

* Add note about guests
2021-10-21 08:35:05 -06:00
Dariusz NiemczykandDariusz Niemczyk e6993ca964 Expose logger instance for development purposes
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz NiemczykandDariusz Niemczyk 85a81af1da Replace console.warn with logger.warn
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz NiemczykandDariusz Niemczyk dc9f77a509 Replace console.log with logger.log
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz NiemczykandDariusz Niemczyk db01bfc0fd Replace console.error with logger.error
Related https://github.com/vector-im/element-web/issues/18425
2021-10-19 10:14:31 +02:00
Dariusz NiemczykandDariusz Niemczyk 515a8d2097 Fix wrong type call for window.location.reload 2021-10-19 10:14:31 +02:00