Commit graph

62760 commits

Author SHA1 Message Date
renovate[bot]
8d28dd3784
Update dependency @sentry/browser to v8.40.0 (#28561)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 18:14:00 +00:00
renovate[bot]
df7703a4a5
Update linkify to v4.1.4 (#28560)
* Update linkify to v4.1.4

* Fix types

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-26 18:11:39 +00:00
renovate[bot]
fe7ac68478
Update definitelyTyped (#28557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:34:29 +00:00
renovate[bot]
bda045fad0
Update dependency @stylistic/eslint-plugin to v2.11.0 (#28562)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:34:01 +00:00
renovate[bot]
8a7cdaa3ef
Update dependency stylelint-scss to v6.10.0 (#28564)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:33:45 +00:00
renovate[bot]
7796200562
Update playwright to v1.49.0 (#28566)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:31:10 +00:00
renovate[bot]
80cd93678a
Update docker (#28554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:15:04 +00:00
renovate[bot]
b8c178d133
Update dependency @vector-im/compound-design-tokens to v2.1.0 (#28563)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:14:41 +00:00
renovate[bot]
5f4d789259
Update dependency @formatjs/intl-segmenter to v11.7.4 (#28558)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-26 17:14:36 +00:00
Hubert Chathi
85711be352
Show the correct shield status in tooltip for more conditions (#28476)
* Add support for new shield codes in JS SDK

* change string used for shield message

* fix test
2024-11-26 16:00:52 +00:00
Michael Telatynski
de820e11fc
Remove Twemoji SBIX font in favour of COLRv0 (#28549)
* Remove Twemoji SBIX font in favour of COLRv0

as it is supported everywhere we need it

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

* Remove unused mock

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-26 14:20:15 +00:00
Hubert Chathi
0333cba258
temporarily add a default branch to handle unknown shield codes (#28543) 2024-11-26 14:16:20 +00:00
Michael Telatynski
15bd59b81a
Fix release workflow permissions
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-26 13:41:15 +00:00
ElementRobot
c74f9159ad
[create-pull-request] automated change (#28544)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-11-26 11:54:21 +00:00
Florian Duros
2ac2bae4fa
Add spinner when room encryption is loading in room settings (#28535) 2024-11-26 09:43:21 +00:00
Michael Telatynski
a2a066d8b4
Deploy app.element.io & staging.element.io via Github Actions (#28525)
* Deploy app.element.io & staging.element.io via Github Actions

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

* Iterate

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

* Iterate

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

* Simplify - this check is done by the Environment protection

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-25 10:41:04 +00:00
Florian Duros
ede91bf921
Use CryptoApi.getKeyBackupInfo instead of deprecated MatrixClient.getKeyBackupVersion (#28450)
* Use `CryptoApi.getKeyBackupInfo` instead of deprecated `MatrixClient.getKeyBackupVersion`

* Review changes

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-25 09:30:42 +00:00
ElementRobot
fd7c50f61d
[create-pull-request] automated change (#28528)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-11-23 06:21:36 +00:00
Michael Telatynski
3d6664109b
Send and respect MSC4230 is_animated flag (#28513)
* PoC implementation for is_animated m.image flag

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

* Update MSC reference

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-11-22 13:58:37 +00:00
Michael Telatynski
7d20bd4d06
Merge remote-tracking branch 'origin/develop' into develop 2024-11-22 11:52:32 +00:00
Michael Telatynski
e0e522a0e9
Fix permissions in build_develop.yml
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-22 11:52:24 +00:00
Michael Telatynski
8df26a54cf
Fix getOidcCallbackUrl for Element Desktop (#28521)
Got broken by a Chrome change

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-22 10:24:59 +00:00
Hubert Chathi
c2ce7dbc5e
Display a warning when an unverified user's identity changes (#28211)
* display a warning when an unverified user's identity changes

* use Compound and make comments into doc comments

* refactor to use functional component

* split into multiple hooks

* apply minor changes from review

* use Crypto API to determine if room is encrypted

* apply changes from review

* change initialisation status to a tri-state rather than a boolean

* fix more race conditions, and apply changes from review

* apply changes from review and switch to using counter for detecting races

* Remove outdated comment

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

* fix test

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-11-21 20:31:29 +00:00
Michael Telatynski
affa4e5211
Switch away from deprecated github-status-action (#28514)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-21 16:22:48 +00:00
Michael Telatynski
04604e5171
We have to explicitly specify github-token even though it is the default for this to work in theory
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-21 15:59:17 +00:00
Michael Telatynski
0e38df84c8
Fix permissions
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-21 15:39:00 +00:00
Michael Telatynski
2ce588ac64
Merge pull request #28502 from element-hq/t3chguy/fix/22729 2024-11-21 15:34:00 +00:00
Michael Telatynski
cdfb58501d
Fix perms
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-21 14:18:29 +00:00
Michael Telatynski
f89f050f07
Fix permission
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-21 13:54:31 +00:00
Michael Telatynski
eddaf7c47e
Swap out Twitter link for Mastodon on auth footer (#28508)
* Swap out Twitter link for Mastodon on auth footer

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

* Update snapshots & screenshots

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-21 10:59:43 +00:00
Florian Duros
3860226ee2
Add Z-Flaky-Jest-Test label (#28512) 2024-11-21 10:42:09 +00:00
ElementRobot
b907ec380f
[create-pull-request] automated change (#28509)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-11-21 06:20:31 +00:00
Michael Telatynski
5d7c71210f
Consider org.matrix.msc3417.call as video room in create room dialog (#28497)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-20 19:04:05 +00:00
Michael Telatynski
d8844c682b
Filter out redacted poll votes to avoid crashing the Poll widget (#28498)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-20 19:01:19 +00:00
Michael Telatynski
72989ea646
Fix force tab complete not working since switching to React 18 createRoot API (#28505)
`setState` now has different timings so we cannot assume the state changes are available immediately and must await them

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-20 18:52:10 +00:00
Michael Telatynski
95630f525f
Remove usage of legacyRoot in RTL tests (#28485)
* Remove usage of legacyRoot in RTL tests

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

* Iterate

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

* Iterate

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

* Iterate

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-11-20 18:09:51 +00:00
Florian Duros
d5c111f656
Rework UrlPreviewSettings to use MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28463)
* Rework `UrlPreviewSettings` to use `MatrixClient.CryptoApi.isEncryptionEnabledInRoom`

* Handle loading state

* Update `@vector-im/compound-web` to have `InlineSpinner`

* Use `InlineSpinner` instead of a loading text.
2024-11-20 17:08:34 +00:00
Michael Telatynski
7329a5f1fc
Fix source maps in production builds (#28499)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-20 16:28:03 +00:00
Michael Telatynski
2063624fb6
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-20 15:50:59 +00:00
Michael Telatynski
03a1d89785
Tighten GITHUB_TOKEN permissions
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-11-20 15:44:02 +00:00
Florian Duros
5cdcf44b6f
Second batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28466)
* Add `asyncFilter`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `MemberListStore.tsx`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `EventIndex.tsx`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `SendMessageComposer.tsx`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `ScalarMessaging.ts`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `RolesRoomSettingsTab.tsx`

* Add reject doc to `asyncFilter`

* Reverse `MemberListStore.loadMembers` condition

* Remove async for `ScalarMessaging.ts`

* Display permission section only after `isEncrypted` is computed

* Display composer only after `isEncrypted` is computed

* Revert "Display composer only after `isEncrypted` is computed"

This reverts commit 4d4e037391.

* Revert "Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `SendMessageComposer.tsx`"

This reverts commit 6bf06da02c.
2024-11-20 14:27:09 +00:00
Michael Telatynski
ca33d9165a
Migrate to React 18 createRoot API (#28256)
* Migrate to React 18 createRoot API

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

* Iterate

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

* Iterate

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

* Iterate

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

* Iterate

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

* Iterate

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

* Iterate

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

* Iterate

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

* Iterate

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

* Discard changes to src/components/views/settings/devices/DeviceDetails.tsx

* Iterate

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

* Iterate

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

* Iterate

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

* Attempt to stabilise test

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

* legacyRoot?

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

* Iterate

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

* Iterate

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

* Fix tests

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

* Improve coverage

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

* Update snapshots

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

* Improve coverage

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

* Iterate

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-11-20 13:29:23 +00:00
ElementRobot
48fd330dd9
[create-pull-request] automated change (#28495)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-11-20 06:20:25 +00:00
RiotRobot
f0af77712f Reset matrix-js-sdk back to develop branch 2024-11-19 14:26:10 +00:00
RiotRobot
60ff33fecc Merge branch 'master' into develop 2024-11-19 14:25:57 +00:00
RiotRobot
3bcc27a444 v1.11.86 2024-11-19 14:23:06 +00:00
RiotRobot
7e33f03a02 Upgrade dependency to matrix-js-sdk@34.12.0 2024-11-19 14:19:36 +00:00
Tulir Asokan
0d5c9a338b
Fix media captions in bubble layout (#28480) 2024-11-19 10:28:30 +00:00
Florian Duros
d4ab40990b
First batch: Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom (#28242)
* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `DeviceListener.ts`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `Searching.ts`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `SlidingSyncManager.ts`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `EncryptionEvent.tsx`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `ReportEventDialog.tsx`

* Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `RoomNotifications.tsx`

* Fix MessagePanel-test.tsx

* ReplaceReplace `MatrixCient..isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `shouldSkipSetupEncryption.ts`

* Add missing `await`

* Use `Promise.any` instead of `asyncSome`

* Add `asyncSomeParallel`

* Use `asyncSomeParallel` instead of  `asyncSome`
2024-11-19 10:09:25 +00:00
ElementRobot
c8e4ffe1dd
[create-pull-request] automated change (#28489)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2024-11-19 06:21:07 +00:00