Commit Graph

84 Commits (7921a6cbf86b035d2b0c1daecb4c24beaf5a5abc)

Author SHA1 Message Date
Michael Weimann 7921a6cbf8
Apply prettier formatting 2022-12-09 13:28:29 +01:00
Michael Weimann cbf5c43ae7
Update to eslint-plugin-matrix-org 0.8 (#23825)
* Update to eslint-plugin-matrix-org 0.8

* Exclude some eslint rules for specs

* Fix eslint tests path
2022-11-23 16:24:36 +00:00
Michael Telatynski 577a6b7c5a
Make SonarCloud happier (#23699) 2022-11-04 15:30:25 +00:00
Michael Telatynski a3ece528e5
Fix config.json failing to load for Jitsi wrapper in non-root deployment (#23577) 2022-10-24 13:48:32 +01:00
Robin ed1ecde348
Simplify the Jitsi wrapper (#23158)
* Remove ClientReady and WidgetReady hacks from the Jitsi wrapper

By registering widget API listeners earlier and simply blocking the
execution of all actions until the Jitsi wrapper has finished setting
up, sending a WidgetReady action becomes no longer necessary.

The ClientReady action is likewise not necessary, because in practice
getting a ready event means the client and the widget have already been
happily talking back and forth for capability negotiation.

* Rename audioDevice/videoDevice to audioInput/videoInput

* Combine HangupCall and ForceHangupCall into one action

* Apply misc code review suggestions
2022-08-30 15:13:37 -04:00
Michael Telatynski 64ed6ebdad
Rename PostCSS files to `.pcss` (#22769)
* Rename PostCSS files to `.pcss`

* Make Stylelint happy

* Make Stylelint happy v2

* Update CompatibilityView.tsx

* Update res/css/structures/ErrorView.pcss

Co-authored-by: Michael Weimann <mail@michael-weimann.eu>

* Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/pcss

 Conflicts:
	package.json
	res/css/_components.scss
	res/css/structures/_NotificationPanel.pcss
	res/css/views/dialogs/_SpotlightDialog.pcss
	res/css/views/rooms/_EventTile.pcss
	res/css/views/rooms/_ReadReceiptGroup.pcss
	yarn.lock

* Only use CI_PACKAGE mode on develop, it skips minification which can find some errors

* Keep name to not break existing PRs

Co-authored-by: Michael Weimann <mail@michael-weimann.eu>
2022-07-15 14:53:21 +01:00
Robin 796aeff168
Hide screenshare button in video rooms on Desktop (#22810)
* Hide screenshare button in video rooms on Desktop

* Splice the screensharing button into the array
2022-07-12 08:23:53 -04:00
Robin 7708d0584b
Remove the ability to hide yourself in video rooms (#22806) 2022-07-11 14:13:23 +00:00
Robin 91918f2a58
Add support for switching layouts in the Jitsi wrapper (#22664) 2022-06-27 19:37:27 +00:00
Robin feccdec581
Reduce video rooms log spam (#22665)
If you forget to call preventDefault in widget action handlers,
matrix-widget-api logs a bunch of errors complaining that the action is
unsupported/unhandled, even if it isn't.
2022-06-27 15:30:56 -04:00
Robin 5f176fa9a6
Connect to Jitsi unmuted by default (#22660)
* Connect to Jitsi unmuted by default

* Refactor joinConference to placate SonarQube
2022-06-27 17:41:33 +00:00
Robin 867fc30ebf
Work around a Jitsi bug with display name encoding (#22525) 2022-06-10 12:21:49 -04:00
Robin 51ed7784d5
Show a dialog when Jitsi encounters an error (#22352) 2022-05-26 10:03:55 -04:00
Robin 9c92f55afd
Work around a Jitsi log handling crash (#22353) 2022-05-25 21:50:27 +00:00
Robin 6c7f663983
Stop Jitsi if we time out while connecting to a video room (#22301) 2022-05-20 16:25:31 -04:00
Robin 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 Telatynski ca98529bd2
Improve code as per Sonar suggestions (#22224) 2022-05-16 16:47:12 +01:00
Robin cdf95ab8b7
Fix video rooms sometimes connecting muted when they shouldn't (#22125) 2022-05-09 18:02:18 -04:00
Robin 1783645108
Avoid flashing the 'join conference' button at the user in video rooms (#22120) 2022-05-09 15:22:45 +01:00
Robin 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
Robin f733e2af87
Fix Jitsi Meet getting wedged at startup in some cases (#21995) 2022-04-30 10:23:36 -04:00
Robin b5336c9a4d
Fix camera getting muted when disconnecting from a video room (#21958) 2022-04-29 08:51:43 -04:00
Robin 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 2c1bb08832.

* 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
Robin ef1d90ad41
Handle forced disconnects from Jitsi (#21697) 2022-04-06 13:08:58 -04:00
Robin eab8a19ec7
Avoid flashing the Jitsi prejoin screen at the user before skipping it (#21665) 2022-04-05 11:32:26 -04:00
Robin 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
Robin 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
Robin 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
Travis Ralston 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
Travis Ralston 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
Kerry 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
James Salter 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
Aaron R 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
Dariusz 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 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 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
Michael Telatynski c7a935777d Fix the jitsi qs parsing, as the `?` after `#` here is optional, unlike in EW 2021-07-16 19:37:48 +01:00
Michael Telatynski b03b4582c0 Merge branch 'develop' of github.com:vector-im/element-web into t3chguy/querystring
 Conflicts:
	package.json
	src/@types/global.d.ts
	src/vector/app.tsx
	src/vector/jitsi/index.ts
	src/vector/platform/WebPlatform.ts
	yarn.lock
2021-07-16 12:45:37 +01:00
J. Ryan Stinnett 491b179971 Auto-fix lint errors 2021-06-30 13:28:31 +01:00
David Baker b910fcd38a Add option for audio live streaming
Starts jitsi streaming to a specially configured URL so that the
jitsi server can start an audio-only stream, in combination with an
API to manage audio streams by room ID.
2021-03-04 18:00:55 +00:00
Travis Ralston c67951f254 Jitsi widget: Read room name from query parameters
This is an aesthetic change to the Jitsi widget and has no bearing on the widget's functionality.

Paired with https://github.com/matrix-org/matrix-react-sdk/pull/5649
2021-02-15 08:54:56 -07: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 d05c022d4f Rebrand some GitHub links 2020-11-25 14:16:55 +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
Travis Ralston 9cb823b210 Fix join button 2020-10-01 09:59:13 -06: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