Skip to content

Commit 8a2fa51

Browse files
committed
Merge tag 'v1.9.0' into deploy-auto
* Fix space keyboard shortcuts conflicting with native zoom shortcuts ([\element-hq#19037](element-hq#19037)). Fixes element-hq#18481 and undefined/element-web#18481. * Say Joining space instead of Joining room where we know its a space ([\element-hq#6818](matrix-org/matrix-react-sdk#6818)). Fixes element-hq#19064 and element-hq#19064. * Add warning that some spaces may not be relinked to the newly upgraded room ([\element-hq#6805](matrix-org/matrix-react-sdk#6805)). Fixes element-hq#18858 and element-hq#18858. * Delabs Spaces, iterate some copy and move communities/space toggle to preferences ([\element-hq#6594](matrix-org/matrix-react-sdk#6594)). Fixes element-hq#18088, element-hq#18524 element-hq#18088 and element-hq#18088. * Show "Message" in the user info panel instead of "Start chat" ([\element-hq#6319](matrix-org/matrix-react-sdk#6319)). Fixes element-hq#17877 and element-hq#17877. Contributed by [SimonBrandner](https://github.com/SimonBrandner). * Fix space keyboard shortcuts conflicting with native zoom shortcuts ([\element-hq#6804](matrix-org/matrix-react-sdk#6804)). * Replace plain text emoji at the end of a line ([\element-hq#6784](matrix-org/matrix-react-sdk#6784)). Fixes element-hq#18833 and element-hq#18833. Contributed by [SimonBrandner](https://github.com/SimonBrandner). * Simplify Space Panel layout and fix some edge cases ([\element-hq#6800](matrix-org/matrix-react-sdk#6800)). Fixes element-hq#18694 and element-hq#18694. * Show unsent message warning on Space Panel buttons ([\#6778](matrix-org/matrix-react-sdk#6778)). Fixes element-hq#18891 and element-hq#18891. * Hide mute/unmute button in UserInfo for Spaces as it makes no sense ([\element-hq#6790](matrix-org/matrix-react-sdk#6790)). Fixes element-hq#19007 and element-hq#19007. * Fix automatic field population in space create menu not validating ([\element-hq#6792](matrix-org/matrix-react-sdk#6792)). Fixes element-hq#19005 and element-hq#19005. * Optimize input label transition on focus ([\#6783](matrix-org/matrix-react-sdk#6783)). Fixes element-hq#12876 and element-hq#12876. Contributed by [MadLittleMods](https://github.com/MadLittleMods). * Adapt and re-use the RolesRoomSettingsTab for Spaces ([\element-hq#6779](matrix-org/matrix-react-sdk#6779)). Fixes element-hq#18908 element-hq#18909 and element-hq#18908. * Deduplicate join rule management between rooms and spaces ([\element-hq#6724](matrix-org/matrix-react-sdk#6724)). Fixes element-hq#18798 and element-hq#18798. * Add config option to turn on in-room event sending timing metrics ([\element-hq#6766](matrix-org/matrix-react-sdk#6766)). * Improve the upgrade for restricted user experience ([\element-hq#6764](matrix-org/matrix-react-sdk#6764)). Fixes element-hq#18677 and element-hq#18677. * Improve tooltips on space quick actions and explore button ([\element-hq#6760](matrix-org/matrix-react-sdk#6760)). Fixes element-hq#18528 and element-hq#18528. * Make space members and user info behave more expectedly ([\element-hq#6765](matrix-org/matrix-react-sdk#6765)). Fixes element-hq#17018 and element-hq#17018. * hide no-op m.room.encryption events and better word param changes ([\element-hq#6747](matrix-org/matrix-react-sdk#6747)). Fixes element-hq#18597 and element-hq#18597. * Respect m.space.parent relations if they hold valid permissions ([\element-hq#6746](matrix-org/matrix-react-sdk#6746)). Fixes element-hq#10935 and element-hq#10935. * Space panel accessibility improvements ([\element-hq#6744](matrix-org/matrix-react-sdk#6744)). Fixes element-hq#18892 and element-hq#18892. * Fix spacing for message composer buttons ([\element-hq#6854](matrix-org/matrix-react-sdk#6854)). * Fix accessing field on oobData which may be undefined ([\element-hq#6830](matrix-org/matrix-react-sdk#6830)). Fixes element-hq#19085 and element-hq#19085. * Fix reactions aria-label not being a string and thus being read as [Object object] ([\element-hq#6828](matrix-org/matrix-react-sdk#6828)). * Fix missing null guard in space hierarchy pagination ([\element-hq#6821](matrix-org/matrix-react-sdk#6821)). Fixes matrix-org/element-web-rageshakes#6299 and matrix-org/element-web-rageshakes#6299. * Fix checks to show prompt to start new chats ([\element-hq#6812](matrix-org/matrix-react-sdk#6812)). * Fix room list scroll jumps ([\element-hq#6777](matrix-org/matrix-react-sdk#6777)). Fixes element-hq#17460 element-hq#18440 and element-hq#17460. Contributed by [robintown](https://github.com/robintown). * Fix various message bubble alignment issues ([\element-hq#6785](matrix-org/matrix-react-sdk#6785)). Fixes element-hq#18293, element-hq#18294 element-hq#18305 and element-hq#18293. Contributed by [robintown](https://github.com/robintown). * Make message bubble font size consistent ([\element-hq#6795](matrix-org/matrix-react-sdk#6795)). Contributed by [robintown](https://github.com/robintown). * Fix edge cases around joining new room which does not belong to active space ([\#6797](matrix-org/matrix-react-sdk#6797)). Fixes element-hq#19025 and element-hq#19025. * Fix edge case space issues around creation and initial view ([\#6798](matrix-org/matrix-react-sdk#6798)). Fixes element-hq#19023 and element-hq#19023. * Stop spinner on space preview if the join fails ([\element-hq#6803](matrix-org/matrix-react-sdk#6803)). Fixes element-hq#19034 and element-hq#19034. * Fix emoji picker and stickerpicker not appearing correctly when opened ([\#6793](matrix-org/matrix-react-sdk#6793)). Fixes element-hq#19012 and element-hq#19012. Contributed by [Palid](https://github.com/Palid). * Fix autocomplete not having y-scroll ([\element-hq#6794](matrix-org/matrix-react-sdk#6794)). Fixes element-hq#18997 and element-hq#18997. Contributed by [Palid](https://github.com/Palid). * Fix broken edge case with public space creation with no alias ([\element-hq#6791](matrix-org/matrix-react-sdk#6791)). Fixes element-hq#19003 and element-hq#19003. * Redirect from /#/welcome to /#/home if already logged in ([\element-hq#6786](matrix-org/matrix-react-sdk#6786)). Fixes element-hq#18990 and element-hq#18990. Contributed by [aaronraimist](https://github.com/aaronraimist). * Fix build issues from two conflicting PRs landing without merge conflict ([\element-hq#6780](matrix-org/matrix-react-sdk#6780)). * Render guest settings only in public rooms/spaces ([\element-hq#6693](matrix-org/matrix-react-sdk#6693)). Fixes element-hq#18776 and element-hq#18776. Contributed by [SimonBrandner](https://github.com/SimonBrandner). * Fix message bubble corners being wrong in the presence of hidden events ([\element-hq#6776](matrix-org/matrix-react-sdk#6776)). Fixes element-hq#18124 and element-hq#18124. Contributed by [robintown](https://github.com/robintown). * Debounce read marker update on scroll ([\element-hq#6771](matrix-org/matrix-react-sdk#6771)). Fixes element-hq#18961 and element-hq#18961. * Use cursor:pointer on space panel buttons ([\element-hq#6770](matrix-org/matrix-react-sdk#6770)). Fixes element-hq#18951 and element-hq#18951. * Fix regressed tab view buttons in space update toast ([\element-hq#6761](matrix-org/matrix-react-sdk#6761)). Fixes element-hq#18781 and element-hq#18781.
2 parents 98508af + bd96d29 commit 8a2fa51

File tree

14 files changed

+710
-637
lines changed

14 files changed

+710
-637
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# To enable CSS hot-reload, set the following variable to 1.
22
CSS_HOT_RELOAD=1
3-
# To use the annoying and inconsistent full page error dialog, set this to 1.
3+
# To use the full page error dialog, set this to 1. Please report false positives to
4+
# the issue tracker for handling.
45
FULL_PAGE_ERRORS=0
56
# To use a single theme, uncomment the line with the theme you want to hot-reload.
67
MATRIX_THEMES='light'

.github/workflows/issues_to_projects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
if: >
99
contains(github.event.issue.labels.*.name, 'X-Needs-Design') &&
1010
(contains(github.event.issue.labels.*.name, 'O-Frequent') ||
11-
contains(github.event.issue.labels.*.name, 'O-Intermediate')) &&
11+
contains(github.event.issue.labels.*.name, 'O-Occasional')) &&
1212
(contains(github.event.issue.labels.*.name, 'S-Critical') ||
1313
contains(github.event.issue.labels.*.name, 'S-Major') ||
1414
contains(github.event.issue.labels.*.name, 'S-Minor'))

.github/workflows/triage-priority-bugs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contains(github.event.issue.labels.*.name, 'T-Defect') &&
1212
contains(github.event.issue.labels.*.name, 'S-Critical') &&
1313
(contains(github.event.issue.labels.*.name, 'O-Frequent') ||
14-
contains(github.event.issue.labels.*.name, 'O-Intermediate')) ||
14+
contains(github.event.issue.labels.*.name, 'O-Occasional')) ||
1515
contains(github.event.issue.labels.*.name, 'S-Major') &&
1616
contains(github.event.issue.labels.*.name, 'O-Frequent') ||
1717
contains(github.event.issue.labels.*.name, 'A11y') &&

CHANGELOG.md

Lines changed: 108 additions & 58 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,6 @@ For a developer guide, see the [translating dev doc](docs/translating-dev.md).
401401
Triaging issues
402402
===============
403403

404-
Issues are triaged by community members and the Web App Team, following the [triage process](https://github.com/vector-im/element-web/wiki/Triage-process).
404+
Issues are triaged by community members and the Web App Team, following the [triage process](https://github.com/vector-im/element-meta/wiki/Triage-process).
405405

406-
We use [issue labels](https://github.com/vector-im/element-web/wiki/Issue-labelling) to sort all incoming issues.
406+
We use [issue labels](https://github.com/vector-im/element-meta/wiki/Issue-labelling) to sort all incoming issues.

docs/labs.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ dropped. Ask in the room if you are unclear about any details here.**
1212
A new version of the "Report" dialog that lets users send abuse reports directly to room moderators,
1313
if the room supports it.
1414

15-
## Matrix Spaces [MSC1772](https://github.com/matrix-org/matrix-doc/pull/1772) support (`feature_spaces`)
16-
17-
Enables showing, using, creating, and managing spaces. Create Spaces from the all new Space Panel (to left of Room List).
18-
19-
Incompatible with (will disable) `feature_custom_tags`, `feature_communities_v2_prototypes` and stable Communities/Groups support.
20-
21-
Still in heavy development.
22-
2315
## Render LaTeX maths in messages (`feature_latex_maths`)
2416

2517
Enables rendering of LaTeX maths in messages using [KaTeX](https://katex.org/). LaTeX between single dollar-signs is interpreted as inline maths and double dollar-signs as display maths (i.e. centred on its own line).

docs/translating-dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Requirements
44

5-
- A working [Development Setup](../../#setting-up-a-dev-environment)
5+
- A working [Development Setup](../README.md#setting-up-a-dev-environment)
66
- Including up-to-date versions of matrix-react-sdk and matrix-js-sdk
77
- Latest LTS version of Node.js installed
88
- Be able to understand English

element.io/develop/config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,13 @@
4848
"privacyPolicyUrl": "https://element.io/privacy",
4949
"termsOfServiceUrl": "https://element.io/terms-of-service",
5050
"url": "https://ems.element.io/element-home/in-app-loader"
51+
},
52+
"sentry": {
53+
"dsn": "https://[email protected]/6",
54+
"environment": "develop"
55+
},
56+
"posthog": {
57+
"projectApiKey": "phc_Jzsm6DTm6V2705zeU5dcNvQDlonOR68XvX2sh1sEOHO",
58+
"apiHost": "https://posthog.hss.element.io"
5159
}
5260
}

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "element-web",
3-
"version": "1.8.5",
3+
"version": "1.9.0",
44
"description": "A feature-rich client for Matrix.org",
55
"author": "New Vector Ltd.",
66
"repository": {
@@ -61,12 +61,12 @@
6161
"highlight.js": "^10.5.0",
6262
"jsrsasign": "^10.2.0",
6363
"katex": "^0.12.0",
64-
"matrix-js-sdk": "12.5.0",
65-
"matrix-react-sdk": "3.30.0",
64+
"matrix-js-sdk": "13.0.0",
65+
"matrix-react-sdk": "3.31.0",
6666
"matrix-widget-api": "^0.1.0-beta.16",
6767
"prop-types": "^15.7.2",
68-
"react": "^17.0.2",
69-
"react-dom": "^17.0.2",
68+
"react": "17.0.2",
69+
"react-dom": "17.0.2",
7070
"sanitize-html": "^2.3.2",
7171
"ua-parser-js": "^0.7.24"
7272
},
@@ -93,8 +93,8 @@
9393
"@types/flux": "^3.1.9",
9494
"@types/modernizr": "^3.5.3",
9595
"@types/node": "^14.14.22",
96-
"@types/react": "^17.0.2",
97-
"@types/react-dom": "^17.0.2",
96+
"@types/react": "17.0.14",
97+
"@types/react-dom": "17.0.9",
9898
"@types/sanitize-html": "^2.3.1",
9999
"@typescript-eslint/eslint-plugin": "^4.17.0",
100100
"@typescript-eslint/parser": "^4.17.0",
@@ -151,13 +151,16 @@
151151
"stylelint-config-standard": "^20.0.0",
152152
"stylelint-scss": "^3.18.0",
153153
"terser-webpack-plugin": "^2.3.8",
154-
"typescript": "^4.1.3",
154+
"typescript": "4.3.5",
155155
"webpack": "^4.46.0",
156156
"webpack-cli": "^3.3.12",
157157
"webpack-dev-server": "^3.11.2",
158158
"worker-loader": "^2.0.0",
159159
"worklet-loader": "^2.0.0"
160160
},
161+
"resolutions": {
162+
"@types/react": "17.0.14"
163+
},
161164
"jest": {
162165
"testEnvironment": "jest-environment-jsdom-sixteen",
163166
"testMatch": [

src/i18n/strings/ar.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@
3333
"Go to element.io": "انتقل إلى element.io",
3434
"Failed to start": "فشل البدء",
3535
"Powered by Matrix": "تدعمه «ماترِكس»",
36-
"Use %(brand)s on mobile": "استعمل %(brand)s على المحمول"
36+
"Use %(brand)s on mobile": "استعمل %(brand)s على المحمول",
37+
"Switch to space by number": "التبديل إلى المساحة بالرقم"
3738
}

src/i18n/strings/et.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"Your browser can't run %(brand)s": "%(brand)s ei toimi sinu brauseris",
3434
"%(brand)s uses advanced browser features which aren't supported by your current browser.": "%(brand)s kasutab mitmeid uusi brauseri-põhiseid tehnoloogiaid, mis ei ole veel sinu veebibrauseris toetatud.",
3535
"Powered by Matrix": "Põhineb Matrix'il",
36-
"Use %(brand)s on mobile": "Kasuta %(brand)s rakendust nutiseadmes",
36+
"Use %(brand)s on mobile": "Kasuta rakendust %(brand)s nutiseadmes",
3737
"Switch to space by number": "Vaata kogukonnakeskust tema numbri alusel"
3838
}

src/i18n/strings/nl.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"Decentralised, encrypted chat & collaboration powered by [matrix]": "Gedecentraliseerd en versleuteld chatten & samenwerken dankzij [matrix]",
88
"Sign In": "Inloggen",
99
"Create Account": "Registreren",
10-
"Explore rooms": "Kamersgids",
10+
"Explore rooms": "Ontdek kamers",
1111
"Unexpected error preparing the app. See console for details.": "Er is een onverwachte fout opgetreden bij het voorbereiden van de app. Zie de console voor details.",
1212
"Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.": "Configuratiefout: kan slechts één van default_server_config, default_server_name, of default_hs_url opgeven.",
1313
"Invalid configuration: no default server specified.": "Configuratie ongeldig: geen standaardserver opgegeven.",
@@ -34,5 +34,5 @@
3434
"%(brand)s uses advanced browser features which aren't supported by your current browser.": "%(brand)s gebruikt geavanceerde functies die niet ondersteund worden in uw huidige browser.",
3535
"Powered by Matrix": "Mogelijk gemaakt door Matrix",
3636
"Use %(brand)s on mobile": "Gebruik %(brand)s op uw mobiel",
37-
"Switch to space by number": "Wissel naar space per nummer"
37+
"Switch to space by number": "Wissel naar ruimte met nummer"
3838
}

src/vector/platform/ElectronPlatform.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
566566
private navigateForwardBack(back: boolean) {
567567
this.ipcCall(back ? "navigateBack" : "navigateForward");
568568
}
569+
569570
private navigateToSpace(num: number) {
570571
dis.dispatch<SwitchSpacePayload>({
571572
action: Action.SwitchSpace,
@@ -597,8 +598,9 @@ export default class ElectronPlatform extends VectorBasePlatform {
597598
if (!handled &&
598599
// ideally we would use SpaceStore.spacesEnabled here but importing SpaceStore in this platform
599600
// breaks skinning as the platform is instantiated prior to the skin being loaded
600-
SettingsStore.getValue("feature_spaces") &&
601+
!SettingsStore.getValue("showCommunitiesInsteadOfSpaces") &&
601602
ev.code.startsWith("Digit") &&
603+
ev.code !== "Digit0" && // this is the shortcut for reset zoom, don't override it
602604
isOnlyCtrlOrCmdKeyEvent(ev)
603605
) {
604606
const spaceNumber = ev.code.slice(5); // Cut off the first 5 characters - "Digit"

0 commit comments

Comments
 (0)