Commit Graph

860 Commits

Author SHA1 Message Date
Michael Telatynski
83cd189984 Call Navigator::setAppBadge in Electron for Windows badges 2023-05-24 11:34:55 +01:00
Michael Telatynski
d7a98fe392 Handle trailing dot FQDNs for domain-specific config.json files (#25351) 2023-05-12 13:46:49 +01:00
Michael Weimann
b25a7ef505 Add error notification audio (#25312) 2023-05-10 08:02:55 +02:00
Michael Telatynski
9e6467c684 Improve quality of Typescripting (#25232) 2023-05-05 09:08:36 +01:00
Michael Telatynski
afab95288e Improve Content-Security-Policy (#25210) 2023-04-26 14:49:35 +01:00
Michael Telatynski
3eddc939ce s/unset/reset/ 2023-04-26 11:12:57 +01:00
Michael Telatynski
f5b8bccb65 Conform more of the codebase with noImplicitAny and strictNullChecks (#25174
* Conform more of the codebase with `noImplicitAny` and `strictNullChecks`

* Fix tests

* Update src/vector/app.tsx
2023-04-25 09:36:17 +01:00
Janne Mareike Koschinski
89054a50ac Replace newTranslatableError with UserFriendlyError (#25002)
* Apply user-friendly-error changes to element-web as well
* Update i18n library
2023-03-31 12:41:15 +02:00
emrah
2575322360 Use a newly generated access_token while joining Jitsi (#24646)
Fixes: #24687
Signed-off-by: Emrah Eryilmaz emrah.com@gmail.com
2023-03-22 14:05:10 +00:00
Michael Telatynski
b9b0b096a4 Allow desktop app to expose recent rooms in UI integrations (#16940) 2023-03-22 09:22:51 +00:00
Michael Telatynski
77e7bad4f1 Clear electron data when logging out (#24827) 2023-03-15 15:53:02 +00:00
Dominik Henneke
afe2ac2ae6 Add API params to mute audio and/or video in Jitsi calls by default (#24820)
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
2023-03-15 13:50:39 +01:00
Oliver Sand
5de1b0a012 Pass current language into Jitsi (#24609
* Pass current language into Jitsi

Jitsi itself now uses the current language of the user. However, this does not yet apply to the welcome page of the Jitsi widget that says "Join conference", which is only hard-coded to
english for now.

Signed-off-by: Oliver Sand <oliver.sand@nordeck.net>

* Map between Element and Jitsi language codes

---------

Signed-off-by: Oliver Sand <oliver.sand@nordeck.net>
2023-02-22 18:21:05 +00:00
maheichyk
583ac3de96 Jitsi requests 'requires_client' capability if auth token is provided (#24294)
* Jitsi requests 'io.element.requires_client' capability if auth token is provided

* Added a comment that Jitsi should request 'requires_client' capability to hide the popup icon in the Element if auth token is provided.

---------

Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
2023-01-31 10:59:17 +00:00
Michael Weimann
6710a289ff Add custom modernizr build to prettierignore 2022-12-09 13:36:07 +01:00
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
3be527cac8 Deploy develop branch to Cloudflare Pages (#23454)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-11-08 13:27:20 +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
Michael Telatynski
172f2f3993 Fix tests and convert to RTL (#23474) 2022-10-13 09:22:34 +01:00
Michael Telatynski
66798c75b5 Trim /version file response (#23473) 2022-10-13 05:52:38 +01:00
Michael Telatynski
2ef6abbfb8 Move from browser-request to fetch (#23427) 2022-10-12 18:59:10 +01:00
Kerry
0e8e472138 Device manager - tweak string formatting of default device name (#23457)
* tweak string formatting of default device name

* cheaters path to beating quality gate

* more electronplatform test coverage

* remove test that throw errors

* cover some more window.electrons

* more coverage

* empty line
2022-10-12 15:35:52 +02: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
822e262a93 Revert "Update ElectronPlatform.tsx (#22976)" (#23030)
This reverts commit 6d3c49d866.
2022-08-09 15:39:47 +01:00
Michael Telatynski
6d3c49d866 Update ElectronPlatform.tsx (#22976) 2022-08-02 16:11:59 +01:00
Šimon Brandner
1e445a75a9 Add support for disabling spell check (#22220)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-07-28 10:19:33 +02:00
Germain
03cce754d4 Disallow invalid inline style comments in stylesheets (#22930) 2022-07-27 14:39:22 +01: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
Michael Telatynski
017dfb6606 Write additional tests (#22802)
* Write additional tests

* Make Sonar happier
2022-07-11 13:22:37 +01:00
Johannes Marbach
688dbc6cba Enable URL tooltips on hover for Element Desktop (#22286)
* Enable URL tooltips for Element Desktop

Closes: #6532
Signed-off-by: Johannes Marbach <johannesm@element.io>

* Fix access level

Co-authored-by: Travis Ralston <travpc@gmail.com>

* Add explicit access level where it exists in base class

* Appease the linker

Co-authored-by: Travis Ralston <travpc@gmail.com>
2022-07-06 12:40:22 -06:00
Travis Ralston
f1e5b95554 Wire up module loading to application startup (#21703)
* Early module loader bundler

* Add a module installer script

* Add dev-friendly docs

* Add real module-api dependency

* Speed up `yarn add` for mulitple modules

* Fix version check for modules

* Appease the linter
2022-07-05 12:26:54 -06:00
Michael Telatynski
53ce8388f1 Fix font preloading causing errors on non-root deployments (#22714) 2022-07-01 20:05:43 +01: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
Michael Telatynski
6c37574857 Remove all mentions of Piwik (#22556)
* Remove all mentions of Piwik

* Simplify ModalManager interface

* Maintain privacy_policy_url
2022-06-14 16:14:09 +01:00
Michael Telatynski
2c0965c240 Abstract electron settings properly to avoid boilerplate-hell (#22491)
* Remove unused method `BasePlatform::screenCaptureErrorString`

* Extract SeshatIndexManager into its own file

* Improve platform typescripting

* Consolidate IPC call promisification into IPCManager

* Abstract electron settings properly to avoid boilerplate-hell

* i18n

* Iterate PR
2022-06-10 22:38:46 +01: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
James Salter
11a3011cbd Option to disable hardware acceleration on Element Desktop (#22295)
Override ElectronPlatform to support disableHardwareAcceleration
2022-05-23 11:50:10 +01: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