Commit Graph

46475 Commits (a0d994ac59e334868963263231b4c1a066840d5f)

Author SHA1 Message Date
Florian Duros 21a1bdf7b7
Cypress: Add test to verify device after login (#11217)
* Run cypress test without `cryptoCallbacks`

* Add security phrase test

* Add security key test

* Fix type import

* Move new test in `verification.spec.ts`

* The nest tests work with the new crypto

* Fix import yupe
2023-07-11 14:18:46 +00:00
Michael Telatynski a8f632ae19
Warn when demoting self via /op and /deop slash commands (#11214)
* Warn when demoting self via /op and /deop slash commands

* Iterate and DRY

* i18n

* Improve coverage

* Improve coverage

* Improve coverage

* Iterate
2023-07-11 12:53:33 +00:00
RiotRobot a67427e6ca v3.76.0-rc.1 2023-07-11 13:47:54 +01:00
RiotRobot ae3eda6065 Prepare changelog for v3.76.0-rc.1 2023-07-11 13:47:52 +01:00
RiotRobot dc679052c0 Upgrade matrix-js-sdk to 27.0.0-rc.1 2023-07-11 13:46:05 +01:00
Andy Balaam b6c7fe4235
Make checkboxes less rounded. Fixes #25715 (#11224) 2023-07-11 11:33:04 +00:00
Janne Mareike Koschinski b179f5562e
GYU: Fix issues with audible keywords without activated mentions (#11218) 2023-07-11 10:38:26 +00:00
Janne Mareike Koschinski d0147561d7
GYU: Update banner (#11211)
* Update help text

* chore: fixed lint issues

* update i18n

* Update button text

* Correct css for settings banners
2023-07-11 10:38:14 +00:00
Element Translate Bot 99343e8abe
Translations update from Weblate (#11219)
* Translated using Weblate (German)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Vietnamese)

Currently translated at 88.8% (3317 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Latvian)

Currently translated at 46.6% (1743 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lv/

* Translated using Weblate (Vietnamese)

Currently translated at 89.4% (3341 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Georgian)

Currently translated at 0.5% (21 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ka/

* Translated using Weblate (Vietnamese)

Currently translated at 89.5% (3342 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.6% (3348 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3351 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3351 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3352 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3352 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 91.2% (3405 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Vietnamese)

Currently translated at 91.5% (3417 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (Polish)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/pl/

* Translated using Weblate (Persian)

Currently translated at 68.2% (2552 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fa/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Translated using Weblate (Vietnamese)

Currently translated at 91.5% (3416 of 3732 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3736 of 3736 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Russian)

Currently translated at 93.0% (3477 of 3736 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Translated using Weblate (Hungarian)

Currently translated at 99.6% (3723 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Russian)

Currently translated at 93.1% (3469 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.2% (3473 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3476 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3721 of 3721 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3479 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3479 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3479 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.4% (3481 of 3724 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Hungarian)

Currently translated at 99.6% (3711 of 3724 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Russian)

Currently translated at 93.4% (3481 of 3724 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

---------

Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Someone <hahahahacker2009@gmail.com>
Co-authored-by: Edgars Andersons <Edgars+Element-translations@gaitenis.id.lv>
Co-authored-by: ia rigby <marvinzem@gmail.com>
Co-authored-by: Văn Huy Dương <huy.error1@gmail.com>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Priit Jõerüüt <riot@joeruut.com>
Co-authored-by: random <dictionary@tutamail.com>
Co-authored-by: raspin0 <marcinekk13@interia.pl>
Co-authored-by: Telegramian <telegramian@gmail.com>
Co-authored-by: Nui Harime <harime.nui@yandex.ru>
Co-authored-by: Balázs Meskó <meskobalazs@gmail.com>
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-07-11 11:54:06 +01:00
dependabot[bot] 400c91b8fa
Bump semver from 5.7.1 to 5.7.2 (#11220)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 10:06:06 +00:00
Michael Telatynski 6e99b2fca3
Linkify mxc:// URLs as links to your media repo (#11213) 2023-07-11 07:25:51 +00:00
Kerry 7b3d0ad209
OIDC: Log in (#11199)
* add delegatedauthentication to validated server config

* dynamic client registration functions

* test OP registration functions

* add stubbed nativeOidc flow setup in Login

* cover more error cases in Login

* tidy

* test dynamic client registration in Login

* comment oidc_static_clients

* register oidc inside Login.getFlows

* strict fixes

* remove unused code

* and imports

* comments

* comments 2

* util functions to get static client id

* check static client ids in login flow

* remove dead code

* OidcRegistrationClientMetadata type

* navigate to oidc authorize url

* exchange code for token

* navigate to oidc authorize url

* navigate to oidc authorize url

* test

* adjust for js-sdk code

* login with oidc native flow: messy version

* tidy

* update test for response_mode query

* tidy up some TODOs

* use new types

* add identityServerUrl to stored params

* unit test completeOidcLogin

* test tokenlogin

* strict

* whitespace

* tidy

* unit test oidc login flow in MatrixChat

* strict

* tidy

* extract success/failure handlers from token login function

* typo

* use for no homeserver error dialog too

* reuse post-token login functions, test

* shuffle testing utils around

* shuffle testing utils around

* i18n

* tidy

* Update src/Lifecycle.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* tidy

* comment

* update tests for id token validation

* move try again responsibility

* prettier

* use more future proof config for static clients

* test util for oidcclientconfigs

* rename type and lint

* correct oidc test util

* store issuer and clientId pre auth navigation

* adjust for js-sdk changes

* update for js-sdk userstate, tidy

* update MatrixChat tests

* update tests

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-07-11 04:09:18 +00:00
Michael Telatynski 186497a67d
Handle all permitted url schemes in linkify (#11215)
* Handle all permitted url schemes in linkify

* Correctly handle optional slash protocols

* Iterate
2023-07-10 15:09:39 +00:00
Timo 58710d129d
Autoapprove Element Call oidc requests (#11209)
* autoapprove Element Call oidc requests

Signed-off-by: Timo K <toger5@hotmail.de>

* update comment

Signed-off-by: Timo K <toger5@hotmail.de>

* add tests for oidc element-call

Signed-off-by: Timo K <toger5@hotmail.de>

* fix ES lint

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-07-10 15:06:58 +00:00
Michael Telatynski ab972ddea9
PosthogAnalytics unwatch settings on logout (#11207)
* PosthogAnalytics unwatch settings on logout

* Tidy
2023-07-10 15:01:59 +00:00
Michael Telatynski 411a63f4a5
Avoid trying to set room account data for pinned events as guest (#11216) 2023-07-10 14:20:12 +00:00
Janne Mareike Koschinski 05c2ee0767
Disable sound for DMs checkbox when DM notifications are disabled (#11210) 2023-07-10 12:49:56 +00:00
David Baker aa818cdf85
Add commented-out waitForIFrameLoad option to Element Call widget (#11208)
As hopefully all explained in comment.
2023-07-10 12:20:08 +00:00
dependabot[bot] c47ebb9342
Bump stylelint from 15.9.0 to 15.10.1 (#11205)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.9.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/15.9.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 08:18:37 +00:00
Charly Nguyen fd749172e1
Allow creating knock rooms (#11182)
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
2023-07-10 08:01:03 +00:00
Kerry 01bd80fe59
OIDC: update to `oidc-client-ts` functions from js-sdk (#11193)
* test util for oidcclientconfigs

* rename type and lint

* correct oidc test util

* store issuer and clientId pre auth navigation

* update for js-sdk userstate, tidy
2023-07-10 00:57:16 +00:00
Richard van der Hoff 1a75d5d869
Cypress: Use Rust crypto for the bot user in verification tests (#11173)
* Cypress: `crypto.verification.request` -> `crypto.verificationRequestReceived`

matrix-org/matrix-js-sdk#3514 deprecated crypto.verification.request.

* Cypress: `beginKeyVerification` -> `startVerification`

matrix-org/matrix-js-sdk#3528 deprecated beginKeyVerification

* simplify `setupBotClient`

no functional change here, just combining the various `cy.wrap()`ed things into
a single async func

* Cypress: Use Rust crypto for the bot user in verification tests

We can already start using the Rust crypto implementation for the "bot" user in
the verification tests!
2023-07-07 16:56:53 +00:00
Gustavo Santos 8924bd26fa
feat(faq): remove keyboard shortcuts button (#9342)
* feat(faq): remove keyboard shortcuts button

Signed-off-by: Gustavo Santos <gefgu@hotmail.com>

* Update HelpUserSettingsTab.tsx

* delint

---------

Signed-off-by: Gustavo Santos <gefgu@hotmail.com>
Co-authored-by: Germain <germains@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 14:40:41 +00:00
Travis Ralston 8a97e5f351
Expose and pre-populate thread ID in devtools dialog (#10953)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 15:40:25 +01:00
Michael Telatynski cfd48b36aa
Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
Michael Telatynski 4207d182cd
Enable strictFunctionTypes (#11201) 2023-07-07 13:37:26 +01:00
Travis Ralston 40de66424d
Hide URL preview if it will be empty (#9029)
* Hide URL preview if it will be empty

* Update src/components/views/rooms/LinkPreviewWidget.tsx

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Iterate

* Iterate

---------

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 11:06:03 +00:00
Germain 252f2ebec0
Remove hidden read receipts migration (#11139)
* Remove hidden read receipts migration

* remove unused values

* Remove hidden RR migration test
2023-07-07 10:55:16 +00:00
Aaron Raimist 71fe08ea0f
Change wording from avatar to profile picture (#7015)
* Change wording from avatar to profile picture

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

* lint

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

* Update EventListSummary

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

* Delete MembershipEventListSummary.tsx

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

* delint

* Update tests

---------

Signed-off-by: Aaron Raimist <aaron@raim.ist>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 10:54:43 +00:00
Michael Telatynski c153a4d388
Enable strictPropertyInitialization (#11200) 2023-07-07 09:02:53 +00:00
Michael Telatynski 118ee89f9e
Fix TimelinePanel-test over-driving Thread model into compliance (#11198) 2023-07-07 09:48:06 +01:00
Michael Telatynski 706a42f390
Quick and dirty devtool to explore state history (#11197)
* Quick and dirty devtool to explore state history

* Include error in unsigned

* iterate

* Fix silly copy paste
2023-07-07 08:16:11 +00:00
Michael Telatynski 285847560b
Conform more of the codebase to strict typing (#11195) 2023-07-07 09:02:13 +01:00
Germain f32b9bab99
Fix room tile text clipping (#11196) 2023-07-07 07:24:48 +00:00
Enrico Schwendig 902263d7c9
force to allow calls without video and audio in embedded mode (#11131)
* force to allow calls without video and audio in embedded mode

* Check device access permission and introduce a only screen share call mode

* Fix strict typ check issue

* Fix i18n check issue

* Add unit tests for device selection

* Fix mocked media device query
2023-07-06 14:40:14 +00:00
Michael Telatynski 3c81f30c26
Enable strictNullChecks and noImplicitAny (#11194) 2023-07-06 13:59:47 +00:00
Michael Telatynski b467d0700f
Replace brittle custom function with lodash implementation (#11188) 2023-07-06 08:22:43 +00:00
Johannes Marbach d7677c7e21
Handle newlines in user pills (#11166)
* Handle newlines in user pills

Fixes: vector-im/element-web#10994

* Fix typo in comment

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Refactor link generation for better readability

* Use `<br>` instead of `<br/>`

* Fix copy/paste error

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-07-05 22:00:27 +00:00
Johannes Marbach 3f20675b93
Limit width of user menu in space panel (#11192)
Fixes: vector-im/element-web#22627
2023-07-05 22:00:03 +00:00
Michael Telatynski 8107f1d271
Conform more of the codebase to strict types (#11191) 2023-07-05 11:53:22 +01:00
Michael Telatynski 4044c2aa66
Consider more user inputs when calculating zxcvbn score (#11180)
* Consider more user inputs when calculating zxcvbn score

* MatrixClientPeg.getHomeserverName may throw
2023-07-05 09:36:30 +00:00
Kerry 90e65e8490
use more future proof config for static clients (#11175) 2023-07-04 23:10:03 +00:00
Kerry ce332d0f8b
Fix: hide unsupported login elements (#11185)
* hide unsupported login elements

* Update src/components/structures/auth/Login.tsx

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-07-04 22:15:35 +00:00
Germain 2034cce235
Scope smaller font size to user info panel (#11178) 2023-07-04 18:02:39 +00:00
Germain 2a7780052e
Compound Typography pass regression fixes (#11189)
* Compound Typography pass regression fixes

* updates to the room list sizing

* fix subtitle clipping

* revert display name to use medium variant
2023-07-04 16:54:28 +00:00
Andy Balaam 3ad9a8fe3b
Revert "Add isLocation to ComposerEvent analytics events" (#11190)
This reverts commit 739a0c7afbcc6ab8fb0dd0ed0c5faba45a51259c.
2023-07-04 16:39:47 +00:00
Michael Telatynski 1a2d201863
Tweak branch matching to allow not applying outside of PRs for matrix-analytics-events (#11186) 2023-07-04 17:14:29 +01:00
ElementRobot cf11b5f400 Reset matrix-js-sdk back to develop branch 2023-07-04 15:17:33 +01:00
ElementRobot a89354b4a1 Resetting package fields for development 2023-07-04 15:17:05 +01:00
ElementRobot 948d5184b5 Merge branch 'master' into develop 2023-07-04 15:17:01 +01:00