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

Commit 08402cc

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into fix/rl-resort/110
2 parents 0465815 + 49453f2 commit 08402cc

File tree

241 files changed

+5866
-2669
lines changed

Some content is hidden

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

241 files changed

+5866
-2669
lines changed
File renamed without changes.

CHANGELOG.md

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,76 @@
1-
Changes in [3.27.0](https://github.com/vector-im/element-desktop/releases/tag/v3.27.0) (2021-07-02)
1+
Changes in [3.28.1](https://github.com/vector-im/element-desktop/releases/tag/v3.28.1) (2021-08-17)
2+
===================================================================================================
3+
4+
## 🐛 Bug Fixes
5+
* Fix multiple VoIP regressions ([matrix-org/matrix-js-sdk#1860](https://github.com/matrix-org/matrix-js-sdk/pull/1860)).
6+
7+
Changes in [3.28.0](https://github.com/vector-im/element-desktop/releases/tag/v3.28.0) (2021-08-16)
8+
===================================================================================================
9+
10+
## ✨ Features
11+
* Show how long a call was on call tiles ([\#6570](https://github.com/matrix-org/matrix-react-sdk/pull/6570)). Fixes vector-im/element-web#18405. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
12+
* Add regional indicators to emoji picker ([\#6490](https://github.com/matrix-org/matrix-react-sdk/pull/6490)). Fixes vector-im/element-web#14963. Contributed by [robintown](https://github.com/robintown).
13+
* Make call control buttons accessible to screen reader users ([\#6181](https://github.com/matrix-org/matrix-react-sdk/pull/6181)). Fixes vector-im/element-web#18358. Contributed by [pvagner](https://github.com/pvagner).
14+
* Skip sending a thumbnail if it is not a sufficient saving over the original ([\#6559](https://github.com/matrix-org/matrix-react-sdk/pull/6559)). Fixes vector-im/element-web#17906.
15+
* Increase PiP snapping speed ([\#6539](https://github.com/matrix-org/matrix-react-sdk/pull/6539)). Fixes vector-im/element-web#18371. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
16+
* Improve and move the incoming call toast ([\#6470](https://github.com/matrix-org/matrix-react-sdk/pull/6470)). Fixes vector-im/element-web#17912. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
17+
* Allow all of the URL schemes that Firefox allows ([\#6457](https://github.com/matrix-org/matrix-react-sdk/pull/6457)). Contributed by [aaronraimist](https://github.com/aaronraimist).
18+
* Improve bubble layout colors ([\#6452](https://github.com/matrix-org/matrix-react-sdk/pull/6452)). Fixes vector-im/element-web#18081. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
19+
* Spaces let users switch between Home and All Rooms behaviours ([\#6497](https://github.com/matrix-org/matrix-react-sdk/pull/6497)). Fixes vector-im/element-web#18093.
20+
* Support for MSC2285 (hidden read receipts) ([\#6390](https://github.com/matrix-org/matrix-react-sdk/pull/6390)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
21+
* Group pinned message events with MELS ([\#6349](https://github.com/matrix-org/matrix-react-sdk/pull/6349)). Fixes vector-im/element-web#17938. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
22+
* Make version copiable ([\#6227](https://github.com/matrix-org/matrix-react-sdk/pull/6227)). Fixes vector-im/element-web#17603 and vector-im/element-web#18329. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
23+
* Improve voice messages uploading state ([\#6530](https://github.com/matrix-org/matrix-react-sdk/pull/6530)). Fixes vector-im/element-web#18226 and vector-im/element-web#18224.
24+
* Add surround with feature ([\#5510](https://github.com/matrix-org/matrix-react-sdk/pull/5510)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
25+
* Improve call event tile wording ([\#6545](https://github.com/matrix-org/matrix-react-sdk/pull/6545)). Fixes vector-im/element-web#18376. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
26+
* Show an avatar/a turned off microphone icon for muted users ([\#6486](https://github.com/matrix-org/matrix-react-sdk/pull/6486)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
27+
* Prompt user to leave rooms/subspaces in a space when leaving space ([\#6424](https://github.com/matrix-org/matrix-react-sdk/pull/6424)). Fixes vector-im/element-web#18071.
28+
* Add customisation point to override widget variables ([\#6455](https://github.com/matrix-org/matrix-react-sdk/pull/6455)). Fixes vector-im/element-web#18035.
29+
* Add support for screen sharing in 1:1 calls ([\#5992](https://github.com/matrix-org/matrix-react-sdk/pull/5992)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
30+
31+
## 🐛 Bug Fixes
32+
* [Release] Fix glare related regressions ([\#6622](https://github.com/matrix-org/matrix-react-sdk/pull/6622)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
33+
* [Release] Fix PiP of held calls ([\#6612](https://github.com/matrix-org/matrix-react-sdk/pull/6612)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
34+
* [Release] Fix toast colors ([\#6607](https://github.com/matrix-org/matrix-react-sdk/pull/6607)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
35+
* Fix [object Object] in Widget Permissions ([\#6560](https://github.com/matrix-org/matrix-react-sdk/pull/6560)). Fixes vector-im/element-web#18384. Contributed by [Palid](https://github.com/Palid).
36+
* Fix right margin for events on IRC layout ([\#6542](https://github.com/matrix-org/matrix-react-sdk/pull/6542)). Fixes vector-im/element-web#18354.
37+
* Mirror only usermedia feeds ([\#6512](https://github.com/matrix-org/matrix-react-sdk/pull/6512)). Fixes vector-im/element-web#5633. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
38+
* Fix LogoutDialog warning + TypeScript migration ([\#6533](https://github.com/matrix-org/matrix-react-sdk/pull/6533)).
39+
* Fix the wrong font being used in the room topic field ([\#6527](https://github.com/matrix-org/matrix-react-sdk/pull/6527)). Fixes vector-im/element-web#18339. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
40+
* Fix inconsistent styling for links on hover ([\#6513](https://github.com/matrix-org/matrix-react-sdk/pull/6513)). Contributed by [janogarcia](https://github.com/janogarcia).
41+
* Fix incorrect height for encoded placeholder images ([\#6514](https://github.com/matrix-org/matrix-react-sdk/pull/6514)). Contributed by [Palid](https://github.com/Palid).
42+
* Fix call events layout for message bubble ([\#6465](https://github.com/matrix-org/matrix-react-sdk/pull/6465)). Fixes vector-im/element-web#18144.
43+
* Improve subspaces and some utilities around room/space creation ([\#6458](https://github.com/matrix-org/matrix-react-sdk/pull/6458)). Fixes vector-im/element-web#18090 vector-im/element-web#18091 and vector-im/element-web#17256.
44+
* Restore pointer cursor for SenderProfile in message bubbles ([\#6501](https://github.com/matrix-org/matrix-react-sdk/pull/6501)). Fixes vector-im/element-web#18249.
45+
* Fix issues with the Call View ([\#6472](https://github.com/matrix-org/matrix-react-sdk/pull/6472)). Fixes vector-im/element-web#18221. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
46+
* Align event list summary read receipts when using message bubbles ([\#6500](https://github.com/matrix-org/matrix-react-sdk/pull/6500)). Fixes vector-im/element-web#18143.
47+
* Better positioning for unbubbled events in timeline ([\#6477](https://github.com/matrix-org/matrix-react-sdk/pull/6477)). Fixes vector-im/element-web#18132.
48+
* Realign reactions row with messages in modern layout ([\#6491](https://github.com/matrix-org/matrix-react-sdk/pull/6491)). Fixes vector-im/element-web#18118. Contributed by [robintown](https://github.com/robintown).
49+
* Fix CreateRoomDialog exploding when making public room outside of a space ([\#6492](https://github.com/matrix-org/matrix-react-sdk/pull/6492)). Fixes vector-im/element-web#18275.
50+
* Fix call crashing because `element` was undefined ([\#6488](https://github.com/matrix-org/matrix-react-sdk/pull/6488)). Fixes vector-im/element-web#18270. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
51+
* Upscale thumbnails to the container size ([\#6589](https://github.com/matrix-org/matrix-react-sdk/pull/6589)). Fixes vector-im/element-web#18307.
52+
* Fix create room dialog in spaces no longer adding to the space ([\#6587](https://github.com/matrix-org/matrix-react-sdk/pull/6587)). Fixes vector-im/element-web#18465.
53+
* Don't show a modal on call reject/user hangup ([\#6580](https://github.com/matrix-org/matrix-react-sdk/pull/6580)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
54+
* Fade Call View Buttons after `componentDidMount` ([\#6581](https://github.com/matrix-org/matrix-react-sdk/pull/6581)). Fixes vector-im/element-web#18439. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
55+
* Fix missing expand button on codeblocks ([\#6565](https://github.com/matrix-org/matrix-react-sdk/pull/6565)). Fixes vector-im/element-web#18388. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
56+
* allow customizing the bubble layout colors ([\#6568](https://github.com/matrix-org/matrix-react-sdk/pull/6568)). Fixes vector-im/element-web#18408. Contributed by [benneti](https://github.com/benneti).
57+
* Don't flash "Missed call" when accepting a call ([\#6567](https://github.com/matrix-org/matrix-react-sdk/pull/6567)). Fixes vector-im/element-web#18404. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
58+
* Fix clicking whitespaces on replies ([\#6571](https://github.com/matrix-org/matrix-react-sdk/pull/6571)). Fixes vector-im/element-web#18327. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
59+
* Fix disabled state for voice messages + send button tooltip ([\#6562](https://github.com/matrix-org/matrix-react-sdk/pull/6562)). Fixes vector-im/element-web#18413.
60+
* Fix voice feed being cut-off ([\#6550](https://github.com/matrix-org/matrix-react-sdk/pull/6550)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
61+
* Fix sizing issues of the screen picker ([\#6498](https://github.com/matrix-org/matrix-react-sdk/pull/6498)). Fixes vector-im/element-web#18281. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
62+
* Stop voice messages that are playing when starting a recording ([\#6563](https://github.com/matrix-org/matrix-react-sdk/pull/6563)). Fixes vector-im/element-web#18410.
63+
* Properly set style attribute on shared usercontent iframe ([\#6561](https://github.com/matrix-org/matrix-react-sdk/pull/6561)). Fixes vector-im/element-web#18414.
64+
* Null guard space inviter to prevent the app exploding ([\#6558](https://github.com/matrix-org/matrix-react-sdk/pull/6558)).
65+
* Make the ringing sound mutable/disablable ([\#6534](https://github.com/matrix-org/matrix-react-sdk/pull/6534)). Fixes vector-im/element-web#15591. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
66+
* Fix wrong cursor being used in PiP ([\#6551](https://github.com/matrix-org/matrix-react-sdk/pull/6551)). Fixes vector-im/element-web#18383. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
67+
* Re-pin Jitsi if the widget already exists ([\#6226](https://github.com/matrix-org/matrix-react-sdk/pull/6226)). Fixes vector-im/element-web#17679. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
68+
* Fix broken call notification regression ([\#6526](https://github.com/matrix-org/matrix-react-sdk/pull/6526)). Fixes vector-im/element-web#18335. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
69+
* createRoom, only send join rule event if we have a join rule to put in it ([\#6516](https://github.com/matrix-org/matrix-react-sdk/pull/6516)). Fixes vector-im/element-web#18301.
70+
* Fix clicking pills inside replies ([\#6508](https://github.com/matrix-org/matrix-react-sdk/pull/6508)). Fixes vector-im/element-web#18283. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
71+
* Fix grecaptcha regression ([\#6503](https://github.com/matrix-org/matrix-react-sdk/pull/6503)). Fixes vector-im/element-web#18284. Contributed by [Palid](https://github.com/Palid).
72+
73+
Changes in [3.27.0](https://github.com/vector-im/element-desktop/releases/tag/v3.27.0) (2021-08-02)
274
===================================================================================================
375

476
## 🔒 SECURITY FIXES

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Contributing code to The React SDK
22
==================================
33

4-
matrix-react-sdk follows the same pattern as https://github.com/matrix-org/matrix-js-sdk/blob/master/CONTRIBUTING.rst
4+
matrix-react-sdk follows the same pattern as https://github.com/matrix-org/matrix-js-sdk/blob/master/CONTRIBUTING.md

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.27.0",
3+
"version": "3.28.1",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -55,6 +55,8 @@
5555
},
5656
"dependencies": {
5757
"@babel/runtime": "^7.12.5",
58+
"@sentry/browser": "^6.11.0",
59+
"@sentry/tracing": "^6.11.0",
5860
"await-lock": "^2.1.0",
5961
"blurhash": "^1.1.3",
6062
"browser-encrypt-attachment": "^0.3.0",
@@ -80,7 +82,7 @@
8082
"katex": "^0.12.0",
8183
"linkifyjs": "^2.1.9",
8284
"lodash": "^4.17.20",
83-
"matrix-js-sdk": "12.2.0",
85+
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop",
8486
"matrix-widget-api": "^0.1.0-beta.15",
8587
"minimist": "^1.2.5",
8688
"opus-recorder": "^8.0.3",
@@ -149,7 +151,7 @@
149151
"@typescript-eslint/eslint-plugin": "^4.17.0",
150152
"@typescript-eslint/parser": "^4.17.0",
151153
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
152-
"allchange": "github:matrix-org/allchange",
154+
"allchange": "^1.0.0",
153155
"babel-jest": "^26.6.3",
154156
"chokidar": "^3.5.1",
155157
"concurrently": "^5.3.0",

res/css/_animations.scss

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
Copyright 2021 The Matrix.org Foundation C.I.C.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
/**
18+
* React Transition Group animations are prefixed with 'mx_rtg--' so that we
19+
* know they should not be used anywhere outside of React Transition Groups.
20+
*/
21+
22+
.mx_rtg--fade-enter {
23+
opacity: 0;
24+
}
25+
.mx_rtg--fade-enter-active {
26+
opacity: 1;
27+
transition: opacity 300ms ease;
28+
}
29+
.mx_rtg--fade-exit {
30+
opacity: 1;
31+
}
32+
.mx_rtg--fade-exit-active {
33+
opacity: 0;
34+
transition: opacity 300ms ease;
35+
}
36+
37+
38+
@keyframes mx--anim-pulse {
39+
0% { opacity: 1; }
40+
50% { opacity: 0.7; }
41+
100% { opacity: 1; }
42+
}
43+
44+
45+
@media (prefers-reduced-motion) {
46+
@keyframes mx--anim-pulse {
47+
// Override all keyframes in reduced-motion
48+
}
49+
.mx_rtg--fade-enter-active {
50+
transition: none;
51+
}
52+
.mx_rtg--fade-exit-active {
53+
transition: none;
54+
}
55+
}

res/css/_common.scss

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ limitations under the License.
1818

1919
@import "./_font-sizes.scss";
2020
@import "./_font-weights.scss";
21+
@import "./_animations.scss";
2122

2223
$hover-transition: 0.08s cubic-bezier(.46, .03, .52, .96); // quadratic
2324

@@ -52,8 +53,8 @@ html {
5253
body {
5354
font-family: $font-family;
5455
font-size: $font-15px;
55-
background-color: $primary-bg-color;
56-
color: $primary-fg-color;
56+
background-color: $background;
57+
color: $primary-content;
5758
border: 0px;
5859
margin: 0px;
5960

@@ -88,7 +89,7 @@ b {
8889
}
8990

9091
h2 {
91-
color: $primary-fg-color;
92+
color: $primary-content;
9293
font-weight: 400;
9394
font-size: $font-18px;
9495
margin-top: 16px;
@@ -141,12 +142,12 @@ textarea::placeholder {
141142

142143
input[type=text], input[type=password], textarea {
143144
background-color: transparent;
144-
color: $primary-fg-color;
145+
color: $primary-content;
145146
}
146147

147148
/* Required by Firefox */
148149
textarea {
149-
color: $primary-fg-color;
150+
color: $primary-content;
150151
}
151152

152153
input[type=text]:focus, input[type=password]:focus, textarea:focus {
@@ -167,12 +168,12 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
167168
// it has the appearance of a text box so the controls
168169
// appear to be part of the input
169170

170-
.mx_Dialog, .mx_MatrixChat {
171+
.mx_Dialog, .mx_MatrixChat_wrapper {
171172
.mx_textinput > input[type=text],
172173
.mx_textinput > input[type=search] {
173174
border: none;
174175
flex: 1;
175-
color: $primary-fg-color;
176+
color: $primary-content;
176177
}
177178

178179
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type=text],
@@ -183,7 +184,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
183184
background-color: transparent;
184185
color: $input-darker-fg-color;
185186
border-radius: 4px;
186-
border: 1px solid rgba($primary-fg-color, .1);
187+
border: 1px solid rgba($primary-content, .1);
187188
// these things should probably not be defined globally
188189
margin: 9px;
189190
}
@@ -208,7 +209,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
208209
:not(.mx_textinput):not(.mx_Field):not(.mx_no_textinput) > input[type=search],
209210
.mx_textinput {
210211
color: $input-darker-fg-color;
211-
background-color: $primary-bg-color;
212+
background-color: $background;
212213
border: none;
213214
}
214215
}
@@ -270,7 +271,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
270271
}
271272

272273
.mx_Dialog {
273-
background-color: $primary-bg-color;
274+
background-color: $background;
274275
color: $light-fg-color;
275276
z-index: 4012;
276277
font-weight: 300;
@@ -378,8 +379,13 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
378379
.mx_Dialog_content {
379380
margin: 24px 0 68px;
380381
font-size: $font-14px;
381-
color: $primary-fg-color;
382+
color: $primary-content;
382383
word-wrap: break-word;
384+
385+
a {
386+
color: $accent-color;
387+
cursor: pointer;
388+
}
383389
}
384390

385391
.mx_Dialog_buttons {
@@ -487,8 +493,8 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
487493
border-radius: 3px;
488494
border: 1px solid $input-border-color;
489495
padding: 9px;
490-
color: $primary-fg-color;
491-
background-color: $primary-bg-color;
496+
color: $primary-content;
497+
background-color: $background;
492498
}
493499

494500
.mx_textButton {

res/css/_components.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
@import "./structures/_LeftPanelWidget.scss";
1818
@import "./structures/_MainSplit.scss";
1919
@import "./structures/_MatrixChat.scss";
20+
@import "./structures/_BackdropPanel.scss";
2021
@import "./structures/_MyGroups.scss";
2122
@import "./structures/_NonUrgentToastContainer.scss";
2223
@import "./structures/_NotificationPanel.scss";
@@ -27,8 +28,8 @@
2728
@import "./structures/_RoomView.scss";
2829
@import "./structures/_ScrollPanel.scss";
2930
@import "./structures/_SearchBox.scss";
31+
@import "./structures/_SpaceHierarchy.scss";
3032
@import "./structures/_SpacePanel.scss";
31-
@import "./structures/_SpaceRoomDirectory.scss";
3233
@import "./structures/_SpaceRoomView.scss";
3334
@import "./structures/_TabbedView.scss";
3435
@import "./structures/_ToastContainer.scss";
@@ -75,6 +76,7 @@
7576
@import "./views/dialogs/_CreateCommunityPrototypeDialog.scss";
7677
@import "./views/dialogs/_CreateGroupDialog.scss";
7778
@import "./views/dialogs/_CreateRoomDialog.scss";
79+
@import "./views/dialogs/_CreateSpaceFromCommunityDialog.scss";
7880
@import "./views/dialogs/_CreateSubspaceDialog.scss";
7981
@import "./views/dialogs/_DeactivateAccountDialog.scss";
8082
@import "./views/dialogs/_DevtoolsDialog.scss";

0 commit comments

Comments
 (0)