Update globalBlacklistUnverifiedDevices on setting change#31983
Update globalBlacklistUnverifiedDevices on setting change#31983
globalBlacklistUnverifiedDevices on setting change#31983Conversation
globalBlacklistUnverifiedDevices on setting changeglobalBlacklistUnverifiedDevices on setting change
| "blacklistUnverifiedDevices", | ||
| null, | ||
| (_settingName, _roomId, _atLevel, blacklistEnabled: boolean) => { | ||
| crypto.globalBlacklistUnverifiedDevices = blacklistEnabled; |
There was a problem hiding this comment.
This will also fire on room-account changes, and will clobber the global value with a room-specific value
| const bobCredentials = await homeserver.registerUser(`user_${testInfo.testId}_bob`, "password", "bob"); | ||
| const bobPage = await createNewInstance(browser, bobCredentials, {}); | ||
| const bobElementApp = new ElementAppPage(bobPage); | ||
| await bobElementApp.client.bootstrapCrossSigning(bobCredentials); |
There was a problem hiding this comment.
I had issues returning decrypted events across the environment boundary, so I thought this may be an easier approach.
andybalaam
left a comment
There was a problem hiding this comment.
One tiny change, but looks good - thanks!
playwright/e2e/settings/encryption-user-tab/other-devices.spec.ts
Outdated
Show resolved
Hide resolved
|
CI is going to want more coverage out of you https://sonarcloud.io/code?id=element-web&pullRequest=31983&selected=element-web%3Asrc%2Fcomponents%2Fstructures%2FMatrixChat.tsx&line=1804 |
Signed-off-by: Skye Elliot <actuallyori@gmail.com>
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
abeabff to
342e302
Compare
|
The two new tests I've added should cover those missing lines, but I'm a bit worried Codecov won't pick it up... |
|
Ugh, it doesn't seem to pick up the new tests in the coverage report. @t3chguy any ideas? |
|
Indeed playwright tests don't generate coverage as just loading the app would hit like 50% coverage without a single assertion. Jest unit/integration tests are used for coverage |
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [vectorim/element-web](https://github.com/element-hq/element-web) | patch | `v1.12.10` → `v1.12.11` | --- ### Release Notes <details> <summary>element-hq/element-web (vectorim/element-web)</summary> ### [`v1.12.11`](https://github.com/element-hq/element-web/releases/tag/v1.12.11) [Compare Source](element-hq/element-web@v1.12.10...v1.12.11) #### 🦖 Deprecations - Remove UIFeature.BulkUnverifiedSessionsReminder setting ([#​31943](element-hq/element-web#31943)). Contributed by [@​andybalaam](https://github.com/andybalaam). - Remove unused function to auto-rageshake when key backup is not set up ([#​31942](element-hq/element-web#31942)). Contributed by [@​andybalaam](https://github.com/andybalaam). #### ✨ Features - Room list: update the visuals in order to have better contrast ([#​32421](element-hq/element-web#32421)). Contributed by [@​florianduros](https://github.com/florianduros). - Set history visibility to "invited" for DMs and new non-public rooms when creating a room ([#​31974](element-hq/element-web#31974)). Contributed by [@​langleyd](https://github.com/langleyd). - Remove server acl status/summaries from timeline ([#​32461](element-hq/element-web#32461)). Contributed by [@​langleyd](https://github.com/langleyd). - Update `globalBlacklistUnverifiedDevices` on setting change ([#​31983](element-hq/element-web#31983)). Contributed by [@​kaylendog](https://github.com/kaylendog). - Add badge for history visibiltity to room info panel ([#​31927](element-hq/element-web#31927)). Contributed by [@​richvdh](https://github.com/richvdh). #### 🐛 Bug Fixes - Default useOnlyCurrentProfiles to true ([#​32524](element-hq/element-web#32524)). Contributed by [@​dbkr](https://github.com/dbkr). - Keep custom theme active after reload ([#​32506](element-hq/element-web#32506)). Contributed by [@​florianduros](https://github.com/florianduros). - Update font format from 'ttf' to 'truetype' ([#​32493](element-hq/element-web#32493)). Contributed by [@​all-yall](https://github.com/all-yall). - Fix videos on Firefox ([#​32497](element-hq/element-web#32497)). Contributed by [@​p1gp1g](https://github.com/p1gp1g). - Use a dedicated FAQ/help entry for key storage. ([#​32480](element-hq/element-web#32480)). Contributed by [@​mxandreas](https://github.com/mxandreas). - Avoid showing two chat timelines side by side after a call ([#​32484](element-hq/element-web#32484)). Contributed by [@​robintown](https://github.com/robintown). - Update screenshot for reactive display name disambiguation ([#​32431](element-hq/element-web#32431)). Contributed by [@​aditya-cherukuru](https://github.com/aditya-cherukuru). - Fix Status Bar being unreadable when the user overrides the default OS light/dark theme. ([#​32442](element-hq/element-web#32442)). Contributed by [@​Half-Shot](https://github.com/Half-Shot). - fix: Remove state\_key: null from Seshat search results ([#​31524](element-hq/element-web#31524)). Contributed by [@​shinaoka](https://github.com/shinaoka). - Fix user pill deserialisation ([#​31947](element-hq/element-web#31947)). Contributed by [@​t3chguy](https://github.com/t3chguy). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNS43IiwidXBkYXRlZEluVmVyIjoiNDMuMjUuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIiwiaW1hZ2UiXX0=--> Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/4209 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
…213) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [element-hq/element-web](https://github.com/element-hq/element-web) | patch | `v1.12.10` → `v1.12.11` | --- ### Release Notes <details> <summary>element-hq/element-web (element-hq/element-web)</summary> ### [`v1.12.11`](https://github.com/element-hq/element-web/releases/tag/v1.12.11) [Compare Source](element-hq/element-web@v1.12.10...v1.12.11) #### 🦖 Deprecations - Remove UIFeature.BulkUnverifiedSessionsReminder setting ([#​31943](element-hq/element-web#31943)). Contributed by [@​andybalaam](https://github.com/andybalaam). - Remove unused function to auto-rageshake when key backup is not set up ([#​31942](element-hq/element-web#31942)). Contributed by [@​andybalaam](https://github.com/andybalaam). #### ✨ Features - Room list: update the visuals in order to have better contrast ([#​32421](element-hq/element-web#32421)). Contributed by [@​florianduros](https://github.com/florianduros). - Set history visibility to "invited" for DMs and new non-public rooms when creating a room ([#​31974](element-hq/element-web#31974)). Contributed by [@​langleyd](https://github.com/langleyd). - Remove server acl status/summaries from timeline ([#​32461](element-hq/element-web#32461)). Contributed by [@​langleyd](https://github.com/langleyd). - Update `globalBlacklistUnverifiedDevices` on setting change ([#​31983](element-hq/element-web#31983)). Contributed by [@​kaylendog](https://github.com/kaylendog). - Add badge for history visibiltity to room info panel ([#​31927](element-hq/element-web#31927)). Contributed by [@​richvdh](https://github.com/richvdh). #### 🐛 Bug Fixes - Default useOnlyCurrentProfiles to true ([#​32524](element-hq/element-web#32524)). Contributed by [@​dbkr](https://github.com/dbkr). - Keep custom theme active after reload ([#​32506](element-hq/element-web#32506)). Contributed by [@​florianduros](https://github.com/florianduros). - Update font format from 'ttf' to 'truetype' ([#​32493](element-hq/element-web#32493)). Contributed by [@​all-yall](https://github.com/all-yall). - Fix videos on Firefox ([#​32497](element-hq/element-web#32497)). Contributed by [@​p1gp1g](https://github.com/p1gp1g). - Use a dedicated FAQ/help entry for key storage. ([#​32480](element-hq/element-web#32480)). Contributed by [@​mxandreas](https://github.com/mxandreas). - Avoid showing two chat timelines side by side after a call ([#​32484](element-hq/element-web#32484)). Contributed by [@​robintown](https://github.com/robintown). - Update screenshot for reactive display name disambiguation ([#​32431](element-hq/element-web#32431)). Contributed by [@​aditya-cherukuru](https://github.com/aditya-cherukuru). - Fix Status Bar being unreadable when the user overrides the default OS light/dark theme. ([#​32442](element-hq/element-web#32442)). Contributed by [@​Half-Shot](https://github.com/Half-Shot). - fix: Remove state\_key: null from Seshat search results ([#​31524](element-hq/element-web#31524)). Contributed by [@​shinaoka](https://github.com/shinaoka). - Fix user pill deserialisation ([#​31947](element-hq/element-web#31947)). Contributed by [@​t3chguy](https://github.com/t3chguy). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNS43IiwidXBkYXRlZEluVmVyIjoiNDMuMjUuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIiwiaW1hZ2UiXX0=--> Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/4213 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
Fixes #31606. I'm a little hesitant to introduce new logic to
MatrixChatsince it's already a very large file, but I'm not sure where would be a better place.Checklist
public/exportedsymbols have accurate TSDoc documentation.