Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6e688b3

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into public-e2ee-warn
2 parents 3abc419 + 7c1d9b4 commit 6e688b3

File tree

139 files changed

+5117
-1965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+5117
-1965
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @matrix-org/element-web

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14

CHANGELOG.md

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,122 @@
1+
Changes in [3.27.0](https://github.com/vector-im/element-desktop/releases/tag/v3.27.0) (2021-07-02)
2+
===================================================================================================
3+
4+
## 🔒 SECURITY FIXES
5+
* Sanitize untrusted variables from message previews before translation
6+
Fixes vector-im/element-web#18314
7+
8+
## ✨ Features
9+
* Fix editing of `<sub>` & `<sup`> & `<u>`
10+
[\#6469](https://github.com/matrix-org/matrix-react-sdk/pull/6469)
11+
Fixes vector-im/element-web#18211
12+
* Zoom images in lightbox to where the cursor points
13+
[\#6418](https://github.com/matrix-org/matrix-react-sdk/pull/6418)
14+
Fixes vector-im/element-web#17870
15+
* Avoid hitting the settings store from TextForEvent
16+
[\#6205](https://github.com/matrix-org/matrix-react-sdk/pull/6205)
17+
Fixes vector-im/element-web#17650
18+
* Initial MSC3083 + MSC3244 support
19+
[\#6212](https://github.com/matrix-org/matrix-react-sdk/pull/6212)
20+
Fixes vector-im/element-web#17686 and vector-im/element-web#17661
21+
* Navigate to the first room with notifications when clicked on space notification dot
22+
[\#5974](https://github.com/matrix-org/matrix-react-sdk/pull/5974)
23+
* Add matrix: to the list of permitted URL schemes
24+
[\#6388](https://github.com/matrix-org/matrix-react-sdk/pull/6388)
25+
* Add "Copy Link" to room context menu
26+
[\#6374](https://github.com/matrix-org/matrix-react-sdk/pull/6374)
27+
* 💭 Message bubble layout
28+
[\#6291](https://github.com/matrix-org/matrix-react-sdk/pull/6291)
29+
Fixes vector-im/element-web#4635, vector-im/element-web#17773 vector-im/element-web#16220 and vector-im/element-web#7687
30+
* Play only one audio file at a time
31+
[\#6417](https://github.com/matrix-org/matrix-react-sdk/pull/6417)
32+
Fixes vector-im/element-web#17439
33+
* Move download button for media to the action bar
34+
[\#6386](https://github.com/matrix-org/matrix-react-sdk/pull/6386)
35+
Fixes vector-im/element-web#17943
36+
* Improved display of one-to-one call history with summary boxes for each call
37+
[\#6121](https://github.com/matrix-org/matrix-react-sdk/pull/6121)
38+
Fixes vector-im/element-web#16409
39+
* Notification settings UI refresh
40+
[\#6352](https://github.com/matrix-org/matrix-react-sdk/pull/6352)
41+
Fixes vector-im/element-web#17782
42+
* Fix EventIndex double handling events and erroring
43+
[\#6385](https://github.com/matrix-org/matrix-react-sdk/pull/6385)
44+
Fixes vector-im/element-web#18008
45+
* Improve reply rendering
46+
[\#3553](https://github.com/matrix-org/matrix-react-sdk/pull/3553)
47+
Fixes vector-im/riot-web#9217, vector-im/riot-web#7633, vector-im/riot-web#7530, vector-im/riot-web#7169, vector-im/riot-web#7151, vector-im/riot-web#6692 vector-im/riot-web#6579 and vector-im/element-web#17440
48+
49+
## 🐛 Bug Fixes
50+
* Fix CreateRoomDialog exploding when making public room outside of a space
51+
[\#6493](https://github.com/matrix-org/matrix-react-sdk/pull/6493)
52+
* Fix regression where registration would soft-crash on captcha
53+
[\#6505](https://github.com/matrix-org/matrix-react-sdk/pull/6505)
54+
Fixes vector-im/element-web#18284
55+
* only send join rule event if we have a join rule to put in it
56+
[\#6517](https://github.com/matrix-org/matrix-react-sdk/pull/6517)
57+
* Improve the new download button's discoverability and interactions.
58+
[\#6510](https://github.com/matrix-org/matrix-react-sdk/pull/6510)
59+
* Fix voice recording UI looking broken while microphone permissions are being requested.
60+
[\#6479](https://github.com/matrix-org/matrix-react-sdk/pull/6479)
61+
Fixes vector-im/element-web#18223
62+
* Match colors of room and user avatars in DMs
63+
[\#6393](https://github.com/matrix-org/matrix-react-sdk/pull/6393)
64+
Fixes vector-im/element-web#2449
65+
* Fix onPaste handler to work with copying files from Finder
66+
[\#5389](https://github.com/matrix-org/matrix-react-sdk/pull/5389)
67+
Fixes vector-im/element-web#15536 and vector-im/element-web#16255
68+
* Fix infinite pagination loop when offline
69+
[\#6478](https://github.com/matrix-org/matrix-react-sdk/pull/6478)
70+
Fixes vector-im/element-web#18242
71+
* Fix blurhash rounded corners missing regression
72+
[\#6467](https://github.com/matrix-org/matrix-react-sdk/pull/6467)
73+
Fixes vector-im/element-web#18110
74+
* Fix position of the space hierarchy spinner
75+
[\#6462](https://github.com/matrix-org/matrix-react-sdk/pull/6462)
76+
Fixes vector-im/element-web#18182
77+
* Fix display of image messages that lack thumbnails
78+
[\#6456](https://github.com/matrix-org/matrix-react-sdk/pull/6456)
79+
Fixes vector-im/element-web#18175
80+
* Fix crash with large audio files.
81+
[\#6436](https://github.com/matrix-org/matrix-react-sdk/pull/6436)
82+
Fixes vector-im/element-web#18149
83+
* Make diff colors in codeblocks more pleasant
84+
[\#6355](https://github.com/matrix-org/matrix-react-sdk/pull/6355)
85+
Fixes vector-im/element-web#17939
86+
* Show the correct audio file duration while loading the file.
87+
[\#6435](https://github.com/matrix-org/matrix-react-sdk/pull/6435)
88+
Fixes vector-im/element-web#18160
89+
* Fix various timeline settings not applying immediately.
90+
[\#6261](https://github.com/matrix-org/matrix-react-sdk/pull/6261)
91+
Fixes vector-im/element-web#17748
92+
* Fix issues with room list duplication
93+
[\#6391](https://github.com/matrix-org/matrix-react-sdk/pull/6391)
94+
Fixes vector-im/element-web#14508
95+
* Fix grecaptcha throwing useless error sometimes
96+
[\#6401](https://github.com/matrix-org/matrix-react-sdk/pull/6401)
97+
Fixes vector-im/element-web#15142
98+
* Update Emojibase and Twemoji and switch to IamCal (Slack-style) shortcodes
99+
[\#6347](https://github.com/matrix-org/matrix-react-sdk/pull/6347)
100+
Fixes vector-im/element-web#13857 and vector-im/element-web#13334
101+
* Respect compound emojis in default avatar initial generation
102+
[\#6397](https://github.com/matrix-org/matrix-react-sdk/pull/6397)
103+
Fixes vector-im/element-web#18040
104+
* Fix bug where the 'other homeserver' field in the server selection dialog would become briefly focus and then unfocus when clicked.
105+
[\#6394](https://github.com/matrix-org/matrix-react-sdk/pull/6394)
106+
Fixes vector-im/element-web#18031
107+
* Standardise spelling and casing of homeserver, identity server, and integration manager
108+
[\#6365](https://github.com/matrix-org/matrix-react-sdk/pull/6365)
109+
* Fix widgets not receiving decrypted events when they have permission.
110+
[\#6371](https://github.com/matrix-org/matrix-react-sdk/pull/6371)
111+
Fixes vector-im/element-web#17615
112+
* Prevent client hangs when calculating blurhashes
113+
[\#6366](https://github.com/matrix-org/matrix-react-sdk/pull/6366)
114+
Fixes vector-im/element-web#17945
115+
* Exclude state events from widgets reading room events
116+
[\#6378](https://github.com/matrix-org/matrix-react-sdk/pull/6378)
117+
* Cache feature_spaces\* flags to improve performance
118+
[\#6381](https://github.com/matrix-org/matrix-react-sdk/pull/6381)
119+
1120
Changes in [3.26.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.26.0) (2021-07-19)
2121
=====================================================================================================
3122
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.26.0-rc.1...v3.26.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ All code lands on the `develop` branch - `master` is only used for stable releas
3434
**Please file PRs against `develop`!!**
3535

3636
Please follow the standard Matrix contributor's guide:
37-
https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.rst
37+
https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.md
3838

3939
Please follow the Matrix JS/React code style as per:
4040
https://github.com/matrix-org/matrix-react-sdk/blob/master/code_style.md

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.26.0",
3+
"version": "3.27.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -80,13 +80,14 @@
8080
"katex": "^0.12.0",
8181
"linkifyjs": "^2.1.9",
8282
"lodash": "^4.17.20",
83-
"matrix-js-sdk": "12.1.0",
83+
"matrix-js-sdk": "12.2.0",
8484
"matrix-widget-api": "^0.1.0-beta.15",
8585
"minimist": "^1.2.5",
8686
"opus-recorder": "^8.0.3",
8787
"pako": "^2.0.3",
8888
"parse5": "^6.0.1",
8989
"png-chunks-extract": "^1.0.0",
90+
"posthog-js": "1.12.2",
9091
"prop-types": "^15.7.2",
9192
"qrcode": "^1.4.4",
9293
"re-resizable": "^6.9.0",
@@ -123,6 +124,7 @@
123124
"@babel/traverse": "^7.12.12",
124125
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.3.tgz",
125126
"@peculiar/webcrypto": "^1.1.4",
127+
"@sentry/types": "^6.10.0",
126128
"@sinonjs/fake-timers": "^7.0.2",
127129
"@types/classnames": "^2.2.11",
128130
"@types/commonmark": "^0.27.4",
@@ -147,13 +149,14 @@
147149
"@typescript-eslint/eslint-plugin": "^4.17.0",
148150
"@typescript-eslint/parser": "^4.17.0",
149151
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
152+
"allchange": "github:matrix-org/allchange",
150153
"babel-jest": "^26.6.3",
151154
"chokidar": "^3.5.1",
152155
"concurrently": "^5.3.0",
153156
"enzyme": "^3.11.0",
154157
"eslint": "7.18.0",
155158
"eslint-config-google": "^0.14.0",
156-
"eslint-plugin-matrix-org": "github:matrix-org/eslint-plugin-matrix-org#main",
159+
"eslint-plugin-matrix-org": "github:matrix-org/eslint-plugin-matrix-org#2306b3d4da4eba908b256014b979f1d3d43d2945",
157160
"eslint-plugin-react": "^7.22.0",
158161
"eslint-plugin-react-hooks": "^4.2.0",
159162
"glob": "^7.1.6",
@@ -166,6 +169,7 @@
166169
"matrix-web-i18n": "github:matrix-org/matrix-web-i18n",
167170
"react-test-renderer": "^17.0.2",
168171
"rimraf": "^3.0.2",
172+
"rrweb-snapshot": "1.1.7",
169173
"stylelint": "^13.9.0",
170174
"stylelint-config-standard": "^20.0.0",
171175
"stylelint-scss": "^3.18.0",
@@ -189,7 +193,8 @@
189193
"decoderWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
190194
"decoderWorker\\.min\\.wasm": "<rootDir>/__mocks__/empty.js",
191195
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
192-
"workers/(.+)\\.worker\\.ts": "<rootDir>/__mocks__/workerMock.js"
196+
"workers/(.+)\\.worker\\.ts": "<rootDir>/__mocks__/workerMock.js",
197+
"RecorderWorklet": "<rootDir>/__mocks__/empty.js"
193198
},
194199
"transformIgnorePatterns": [
195200
"/node_modules/(?!matrix-js-sdk).+$"

release_config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
subprojects:
2+
matrix-js-sdk:
3+
includeByDefault: false
4+

res/css/_components.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
@import "./views/dialogs/_AddExistingToSpaceDialog.scss";
6868
@import "./views/dialogs/_AddressPickerDialog.scss";
6969
@import "./views/dialogs/_Analytics.scss";
70-
@import "./views/dialogs/_BetaFeedbackDialog.scss";
7170
@import "./views/dialogs/_BugReportDialog.scss";
7271
@import "./views/dialogs/_ChangelogDialog.scss";
7372
@import "./views/dialogs/_ChatCreateOrReuseChatDialog.scss";
@@ -76,16 +75,20 @@
7675
@import "./views/dialogs/_CreateCommunityPrototypeDialog.scss";
7776
@import "./views/dialogs/_CreateGroupDialog.scss";
7877
@import "./views/dialogs/_CreateRoomDialog.scss";
78+
@import "./views/dialogs/_CreateSubspaceDialog.scss";
7979
@import "./views/dialogs/_DeactivateAccountDialog.scss";
8080
@import "./views/dialogs/_DevtoolsDialog.scss";
8181
@import "./views/dialogs/_EditCommunityPrototypeDialog.scss";
8282
@import "./views/dialogs/_FeedbackDialog.scss";
8383
@import "./views/dialogs/_ForwardDialog.scss";
84+
@import "./views/dialogs/_GenericFeatureFeedbackDialog.scss";
8485
@import "./views/dialogs/_GroupAddressPicker.scss";
8586
@import "./views/dialogs/_HostSignupDialog.scss";
8687
@import "./views/dialogs/_IncomingSasDialog.scss";
8788
@import "./views/dialogs/_InviteDialog.scss";
89+
@import "./views/dialogs/_JoinRuleDropdown.scss";
8890
@import "./views/dialogs/_KeyboardShortcutsDialog.scss";
91+
@import "./views/dialogs/_LeaveSpaceDialog.scss";
8992
@import "./views/dialogs/_ManageRestrictedJoinRuleDialog.scss";
9093
@import "./views/dialogs/_MessageEditHistoryDialog.scss";
9194
@import "./views/dialogs/_ModalWidgetDialog.scss";
@@ -263,6 +266,7 @@
263266
@import "./views/spaces/_SpacePublicShare.scss";
264267
@import "./views/terms/_InlineTermsAgreement.scss";
265268
@import "./views/toasts/_AnalyticsToast.scss";
269+
@import "./views/toasts/_IncomingCallToast.scss";
266270
@import "./views/toasts/_NonUrgentEchoFailureToast.scss";
267271
@import "./views/verification/_VerificationShowSas.scss";
268272
@import "./views/voip/_CallContainer.scss";

res/css/structures/_SpacePanel.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ $activeBorderColor: $secondary-fg-color;
297297
.mx_SpaceButton:hover,
298298
.mx_SpaceButton:focus-within,
299299
.mx_SpaceButton_hasMenuOpen {
300-
&:not(.mx_SpaceButton_home):not(.mx_SpaceButton_invite) {
300+
&:not(.mx_SpaceButton_invite) {
301301
// Hide the badge container on hover because it'll be a menu button
302302
.mx_SpacePanel_badgeContainer {
303303
width: 0;
@@ -368,6 +368,14 @@ $activeBorderColor: $secondary-fg-color;
368368
.mx_SpacePanel_iconExplore::before {
369369
mask-image: url('$(res)/img/element-icons/roomlist/browse.svg');
370370
}
371+
372+
.mx_SpacePanel_noIcon {
373+
display: none;
374+
375+
& + .mx_IconizedContextMenu_label {
376+
padding-left: 5px !important; // override default iconized label style to align with header
377+
}
378+
}
371379
}
372380

373381

res/css/structures/_SpaceRoomDirectory.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ limitations under the License.
6161

6262
.mx_AccessibleButton_kind_link {
6363
padding: 0;
64+
font-size: inherit;
6465
}
6566

6667
.mx_SearchBox {

res/css/structures/_SpaceRoomView.scss

Lines changed: 5 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -335,24 +335,17 @@ $SpaceRoomViewInnerWidth: 428px;
335335
word-wrap: break-word;
336336
}
337337

338-
> hr {
339-
border: none;
340-
height: 1px;
341-
background-color: $groupFilterPanel-bg-color;
342-
}
343-
344338
.mx_SearchBox {
345339
margin: 0 0 20px;
346340
flex: 0;
347341
}
348342

349343
.mx_SpaceFeedbackPrompt {
350-
margin-bottom: 16px;
351-
352-
// hide the HR as we have our own
353-
& + hr {
354-
display: none;
355-
}
344+
padding: 7px; // 8px - 1px border
345+
border: 1px solid $menu-border-color;
346+
border-radius: 8px;
347+
width: max-content;
348+
margin: 0 0 -40px auto; // collapse its own height to not push other components down
356349
}
357350

358351
.mx_SpaceRoomDirectory_list {
@@ -513,66 +506,3 @@ $SpaceRoomViewInnerWidth: 428px;
513506
}
514507
}
515508
}
516-
517-
.mx_SpaceFeedbackPrompt {
518-
margin-top: 18px;
519-
margin-bottom: 12px;
520-
521-
> hr {
522-
border: none;
523-
border-top: 1px solid $input-border-color;
524-
margin-bottom: 12px;
525-
}
526-
527-
> div {
528-
display: flex;
529-
flex-direction: row;
530-
font-size: $font-15px;
531-
line-height: $font-24px;
532-
533-
> span {
534-
color: $secondary-fg-color;
535-
position: relative;
536-
padding-left: 32px;
537-
font-size: inherit;
538-
line-height: inherit;
539-
margin-right: auto;
540-
541-
&::before {
542-
content: '';
543-
position: absolute;
544-
left: 0;
545-
top: 2px;
546-
height: 20px;
547-
width: 20px;
548-
background-color: $secondary-fg-color;
549-
mask-repeat: no-repeat;
550-
mask-size: contain;
551-
mask-image: url('$(res)/img/element-icons/room/room-summary.svg');
552-
mask-position: center;
553-
}
554-
}
555-
556-
.mx_AccessibleButton_kind_link {
557-
color: $accent-color;
558-
position: relative;
559-
padding: 0 0 0 24px;
560-
margin-left: 8px;
561-
font-size: inherit;
562-
line-height: inherit;
563-
564-
&::before {
565-
content: '';
566-
position: absolute;
567-
left: 0;
568-
height: 16px;
569-
width: 16px;
570-
background-color: $accent-color;
571-
mask-repeat: no-repeat;
572-
mask-size: contain;
573-
mask-image: url('$(res)/img/element-icons/chat-bubbles.svg');
574-
mask-position: center;
575-
}
576-
}
577-
}
578-
}

0 commit comments

Comments
 (0)