Commit Graph

62503 Commits (59cd5180afa79c89856c471f722e6d3aa19a2167)

Author SHA1 Message Date
David Baker 67cb8b7590
Force verification even for refreshed clients (#44)
* Force verification even for refreshed cients

Set a flag on login to remember that the device needs to be verified
so that we don't forget if the user refreshes the page, but still allow
user with an existing unverified session to stay logged in.

* Hopefully make matrixchat tests pass?

Much, much tweaking to make the matrixchat tests pass again. Should
hopefully make them a bit more solid in general with judicious use of
waitFor rather than flushPromises(). Also lots of fun to stop the state
bleeding between tests.

* Manual yarn.lock manipulation

to hopefully resolve infinite package sadness

* Make final test pass(?)

Mock out the createClient method to return the same client, because
we've mocked the peg to always return that client, so if we let the
code make another one having still overridden the peg, everything becomes
cursed.

Also mock out the autodiscovery stuff rather than relying on fetch-mock.

* another waitFor

* death to flushPromises

* Put the logged in dispatch back

Actually it breaks all sorts of other things too, having fixed all the
MatrixChat tests (although this is useful anyway).

* Try displaying the screen in onClientStarted instead

* Put post login screen back in logged in

but move ready transition to avoid flash of main UI

* Rejig more in the hope it does the right thing

* Make hook work before push rules are fetched

* Add test for unskippable verification

* Add test for use case selection

* Fix test

* Add playwright test for unskippable verification

* Remove console log

* Add log message to log line

* Add tsdoc

* Use useTypedEventEmitter

* Remove commented code

* Use catch instead of empty then on unawaited promises

or in one case just await it because the caller was async anyway

* Add new mock
2024-10-03 08:55:06 +00:00
Florian Duros 5d6c19c939
Update emoji text, border and background color (#119) 2024-10-02 14:59:03 +00:00
Michael Telatynski 9895a8fb4f
Disable ICE fallback based on well-known configuration (#111)
* Refactor MatrixClientBackedController.ts

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Disable ICE fallback based on well-known configuration

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-02 14:08:15 +00:00
Michael Telatynski 36c80099fb
Merge pull request #28129 from element-hq/t3chguy/remove-legacy-header
Remove legacy room header
2024-10-02 12:11:00 +00:00
Michael Telatynski 8a263ac1b0
Remove legacy room header and promote beta room header (#105)
* Remove legacy room header and promote beta room header

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Tidy up

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove unused component

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Prune i18n

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-02 12:10:58 +00:00
Michael Telatynski e60d3bd1ee
Respect `io.element.jitsi` `useFor1To1Calls` in well-known (#112)
* Respect `io.element.jitsi` `useFor1To1Calls` in well-known

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-02 11:36:11 +00:00
Michael Telatynski 07ce53ce99
Merge branch 'develop' into t3chguy/remove-legacy-header 2024-10-02 11:24:43 +01:00
Michael Telatynski 2a183c76c9
Ensure no race condition between page load and waitForRequest set up (#109)
Fixes https://github.com/element-hq/element-web/issues/27572

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-02 10:21:44 +00:00
Michael Telatynski 2da5d9b1c1
Remove unused icon files (#107)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-02 10:15:45 +00:00
Michael Telatynski 5d9996c281
Use Compound close icon in favour of mishmash of x/close icons (#108)
* Use Compound close icon in favour of mishmash of x/close icons

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove stale CSS

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-02 10:06:17 +00:00
Florian Duros c2c316831a
Allow to unpin redacted event (#98) 2024-10-02 08:23:22 +00:00
David Baker 50871f6973
Merge pull request #28135 from element-hq/renovate/docker
Update docker/build-push-action digest to 4f58ea7
2024-10-01 19:54:18 +00:00
renovate[bot] 013086cbaf
Update docker/build-push-action digest to 4f58ea7 2024-10-01 19:09:55 +00:00
renovate[bot] 107ba592c8
Update dependency @types/express to v5 (#117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 19:08:37 +00:00
renovate[bot] 9019c5fad3
Update dependency @sentry/browser to v8.32.0 (#116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 17:23:11 +00:00
RiotRobot aa3096ab79 v1.11.80-rc.0 2024-10-01 15:17:28 +00:00
RiotRobot c44555cdf0 Upgrade dependency to matrix-react-sdk@3.112.0-rc.0 2024-10-01 15:08:37 +00:00
RiotRobot 60cf3ce192 Upgrade dependency to matrix-js-sdk@34.7.0-rc.0 2024-10-01 14:56:42 +00:00
David Baker ebd632cf47 Merge remote-tracking branch 'origin/staging' into develop 2024-10-01 15:21:47 +01:00
Florian Duros 33198cca35
Use new AES functions (#97) 2024-10-01 14:12:46 +00:00
David Baker 3f1a32105a
Merge pull request #28130 from element-hq/dbkr/branch_cut_debug_2
Separate out tasks for each merge in the Prepare Release script
2024-10-01 13:37:29 +00:00
David Baker 42be67e57a Just run the git setup once 2024-10-01 14:06:03 +01:00
David Baker 350b84a159 Separate out tasks for each merge in the Prepare Release script
So it's easier to see which one failed.
2024-10-01 13:54:32 +01:00
Michael Telatynski f33e802627
Fix untranslated keys being rendered in `/help` dialog (#90)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-01 12:33:07 +00:00
RiotRobot ec60099105 v1.11.79 2024-10-01 12:03:22 +00:00
RiotRobot 14dc9a0418 Upgrade dependency to matrix-react-sdk@3.111.0 2024-10-01 11:59:43 +00:00
Robin d282416ea6 Update docs to reflect that you can join calls without the labs flags 2024-10-01 10:48:08 +01:00
Michael Telatynski 3baba1da65
Remove legacy room header
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-01 10:06:24 +01:00
Michael Telatynski 39a0f6e17b
Remove ts-ignores where no longer necessary (#89)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-10-01 08:29:52 +00:00
Richard van der Hoff 36fae00cf3
Change device isolation mode to set `errorOnVerifiedUserProblems` to `false` (#104)
https://github.com/element-hq/matrix-react-sdk/pull/92 changed the default mode
for encryption to throw an error when sending a message and the room contains either:
 - a verified user with an unverified device
 - a verifeid user who has changed their identity.

We're not really ready for this (we lack the UI to deal with it), so roll that
back.
2024-09-30 20:33:23 +00:00
Michael Telatynski 33c900e307
Remove right panel toggling behaviour on room header buttons (#100)
* Remove right panel toggling behaviour on room header buttons

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove stale test

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-30 16:36:24 +00:00
Michael Telatynski 81bb56ae2b
Simplify Jest runs in CI to share failures with merge queue (#103)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-30 16:34:48 +00:00
Michael Telatynski fe402e28bb
Fix flaky mobile registration tests (#102)
* Fix flaky mobile registration tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Discard changes to src/theme.ts

* Add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-30 16:34:39 +00:00
David Baker 0b3b499fc4
Fix label sync (#101)
The colours can't have hashes on
2024-09-30 15:31:22 +00:00
Robin bd793a0970
Allow joining calls and video rooms without enabling the labs flags (#95)
Since Element Call has now reached production on Element X, Element Web needs to be able to at least participate in group calls. Starting a group call or creating a video room will still require the labs flags, for now.

Note that Jitsi-based video rooms are also affected by this change. This is not because we intend to delabs them (rather, we intend to get rid of them in favor of Element Call video rooms), but because it's easiest to handle both video room variants consistently.
2024-09-30 14:07:53 +00:00
Michael Telatynski 4f391645e7
Ensure timeline search results are visible even in video rooms (#96)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-30 13:50:17 +00:00
Robin e428a1eb53
Merge pull request #28113 from robintown/delabs-join-calls
Update docs to reflect that you can join calls without the labs flags
2024-09-30 13:37:05 +00:00
R Midhun Suresh 1c0b04a3a5
Merge pull request #28124 from element-hq/midhun/remove-message-pinning-from-action
Don't add `labs` label for `A-Message-Pinning`
2024-09-30 13:15:08 +00:00
R Midhun Suresh 34c80bb785
Message pinning is no longer a labs feature
So remove it from this action
2024-09-30 18:17:41 +05:30
Richard van der Hoff f28f1d998f
Improve error display for messages sent from insecure devices (#93)
* Add labs option to exclude unverified devices

Add a labs option which will, when set, switch into the "invisible crypto"
mode of refusing to send keys to, or decrypt messages from, devices that have
not been signed by their owner.

* DecryptionFailureBody: better error messages

Improve the error messages shown for messages from insecure devices.

* playwright: factor out `createSecondBotDevice` utility

* Playwright test for messages from insecure devices

* fixup! DecryptionFailureBody: better error messages

Use compound colour tokens, and add a background colour.

* fixup! DecryptionFailureBody: better error messages

Use compound spacing tokens
2024-09-30 12:39:25 +00:00
Richard van der Hoff be2c1fcf64
Add labs option to exclude unverified devices (#92)
Add a labs option which will, when set, switch into the "invisible crypto"
mode of refusing to send keys to, or decrypt messages from, devices that have
not been signed by their owner.
2024-09-30 10:29:14 +00:00
Robin de02f04395 Update docs to reflect that you can join calls without the labs flags 2024-09-27 14:06:50 -04:00
Michael Telatynski 8962e8cdd3
Improve contrast for timestamps, date separators & spotlight trigger (#91)
* Improve contrast for timestamps and room list search trigger

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Change timeline separator colour to primary for improved contrast

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-27 14:22:15 +00:00
Michael Telatynski ef9e310a25
Pop right panel timeline when unmaximising widget to avoid double timeline (#94)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-27 14:10:33 +00:00
Florian Duros 1b31e7f67b
Merge pull request #28079 from element-hq/renovate/typescript
Update dependency typescript to v5.6.2
2024-09-26 15:07:00 +00:00
Florian Duros e0ab0cfa4e
Merge remote-tracking branch 'origin/renovate/typescript' into renovate/typescript
# Conflicts:
#	yarn.lock
2024-09-26 16:56:14 +02:00
Florian Duros 53bbe891eb
Fix react types 2024-09-26 16:55:46 +02:00
renovate[bot] 7721c9e410
Update dependency typescript to v5.6.2 2024-09-26 14:42:40 +00:00
renovate[bot] 81192f6989
Update dependency typescript to v5.6.2 (#71)
* Update dependency typescript to v5.6.2

* Fix TS errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
2024-09-26 14:25:49 +00:00
Michael Telatynski 34d1875534
Open room settings on room header avatar click (#88)
* Open room settings on room header avatar click

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix nested interactive elements aria fail

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update things for a11y and update snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-09-26 10:14:53 +00:00