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

Commit f110e25

Browse files
committed
Merge branch 'develop' into hughns/desktop-notification-toast-fix
2 parents 7ff4280 + fe4683d commit f110e25

File tree

101 files changed

+3558
-725
lines changed

Some content is hidden

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

101 files changed

+3558
-725
lines changed

.github/workflows/test_coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
fail_ci_if_error: false
3434
verbose: true
35+
override_commit: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}

CHANGELOG.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
1-
Changes in [3.42.1-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.1-rc.1) (2022-03-22)
2-
===============================================================================================================
1+
Changes in [3.42.3](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.3) (2022-04-12)
2+
=====================================================================================================
3+
4+
## ✨ Features
5+
* Release threads as a beta feature ([\#8081](https://github.com/matrix-org/matrix-react-sdk/pull/8081)). Fixes vector-im/element-web#21351.
6+
* More video rooms design updates ([\#8222](https://github.com/matrix-org/matrix-react-sdk/pull/8222)).
7+
* Update video rooms to new design specs ([\#8207](https://github.com/matrix-org/matrix-react-sdk/pull/8207)). Fixes vector-im/element-web#21515, vector-im/element-web#21516 vector-im/element-web#21519 and vector-im/element-web#21526.
8+
* Live Location Sharing - left panel warning with error ([\#8201](https://github.com/matrix-org/matrix-react-sdk/pull/8201)).
9+
* Live location sharing - Stop publishing location to beacons with consecutive errors ([\#8194](https://github.com/matrix-org/matrix-react-sdk/pull/8194)).
10+
* Live location sharing: allow retry when stop sharing fails ([\#8193](https://github.com/matrix-org/matrix-react-sdk/pull/8193)).
11+
* Allow voice messages to be scrubbed in the timeline ([\#8079](https://github.com/matrix-org/matrix-react-sdk/pull/8079)). Fixes vector-im/element-web#18713.
12+
* Live location sharing - stop sharing to beacons in rooms you left ([\#8187](https://github.com/matrix-org/matrix-react-sdk/pull/8187)).
13+
* Allow sending and thumbnailing AVIF images ([\#8172](https://github.com/matrix-org/matrix-react-sdk/pull/8172)).
14+
* Live location sharing - handle geolocation errors ([\#8179](https://github.com/matrix-org/matrix-react-sdk/pull/8179)).
15+
* Show voice room participants when not connected ([\#8136](https://github.com/matrix-org/matrix-react-sdk/pull/8136)). Fixes vector-im/element-web#21513.
16+
* Add margins between labs sections ([\#8169](https://github.com/matrix-org/matrix-react-sdk/pull/8169)).
17+
* Live location sharing - send geolocation beacon events - happy path ([\#8127](https://github.com/matrix-org/matrix-react-sdk/pull/8127)).
18+
* Add support for Animated (A)PNG ([\#8158](https://github.com/matrix-org/matrix-react-sdk/pull/8158)). Fixes vector-im/element-web#12967.
19+
* Don't form continuations from thread roots ([\#8166](https://github.com/matrix-org/matrix-react-sdk/pull/8166)). Fixes vector-im/element-web#20908.
20+
* Improve handling of animated GIF and WEBP images ([\#8153](https://github.com/matrix-org/matrix-react-sdk/pull/8153)). Fixes vector-im/element-web#16193 and vector-im/element-web#6684.
21+
* Wire up file preview for video files ([\#8140](https://github.com/matrix-org/matrix-react-sdk/pull/8140)). Fixes vector-im/element-web#21539.
22+
* When showing thread, always auto-focus its composer ([\#8115](https://github.com/matrix-org/matrix-react-sdk/pull/8115)). Fixes vector-im/element-web#21438.
23+
* Live location sharing - refresh beacon expiry in room ([\#8116](https://github.com/matrix-org/matrix-react-sdk/pull/8116)).
24+
* Use styled mxids in member list v2 ([\#8110](https://github.com/matrix-org/matrix-react-sdk/pull/8110)). Fixes vector-im/element-web#14825. Contributed by @SimonBrandner.
25+
* Delete groups (legacy communities system) ([\#8027](https://github.com/matrix-org/matrix-react-sdk/pull/8027)). Fixes vector-im/element-web#17532.
26+
* Add a prototype of voice rooms in labs ([\#8084](https://github.com/matrix-org/matrix-react-sdk/pull/8084)). Fixes vector-im/element-web#3546.
27+
28+
## 🐛 Bug Fixes
29+
* Fix editing `<ol>` tags with a non-1 start attribute ([\#8211](https://github.com/matrix-org/matrix-react-sdk/pull/8211)). Fixes vector-im/element-web#21625.
30+
* Fix URL previews being enabled when room first created ([\#8227](https://github.com/matrix-org/matrix-react-sdk/pull/8227)). Fixes vector-im/element-web#21659.
31+
* Don't use m.call for Jitsi video rooms ([\#8223](https://github.com/matrix-org/matrix-react-sdk/pull/8223)).
32+
* Scale emoji with size of surrounding text ([\#8224](https://github.com/matrix-org/matrix-react-sdk/pull/8224)).
33+
* Make "Jump to date" translatable ([\#8218](https://github.com/matrix-org/matrix-react-sdk/pull/8218)).
34+
* Normalize call buttons ([\#8129](https://github.com/matrix-org/matrix-react-sdk/pull/8129)). Fixes vector-im/element-web#21493. Contributed by @luixxiul.
35+
* Show room preview bar with maximised widgets ([\#8180](https://github.com/matrix-org/matrix-react-sdk/pull/8180)). Fixes vector-im/element-web#21542.
36+
* Update more strings to not wrongly mention room when it is/could be a space ([\#7722](https://github.com/matrix-org/matrix-react-sdk/pull/7722)). Fixes vector-im/element-web#20243 and vector-im/element-web#20910.
37+
* Fix issue with redacting via edit composer flow causing stuck editStates ([\#8184](https://github.com/matrix-org/matrix-react-sdk/pull/8184)).
38+
* Fix some image/video scroll jumps ([\#8182](https://github.com/matrix-org/matrix-react-sdk/pull/8182)).
39+
* Fix "react error on share dialog" ([\#8170](https://github.com/matrix-org/matrix-react-sdk/pull/8170)). Contributed by @yaya-usman.
40+
* Fix disambiguated profile in threads in bubble layout ([\#8168](https://github.com/matrix-org/matrix-react-sdk/pull/8168)). Fixes vector-im/element-web#21570. Contributed by @SimonBrandner.
41+
* Responsive BetaCard on Labs ([\#8154](https://github.com/matrix-org/matrix-react-sdk/pull/8154)). Fixes vector-im/element-web#21554. Contributed by @luixxiul.
42+
* Display button as inline in room directory dialog ([\#8164](https://github.com/matrix-org/matrix-react-sdk/pull/8164)). Fixes vector-im/element-web#21567. Contributed by @luixxiul.
43+
* Null guard TimelinePanel unmount edge ([\#8171](https://github.com/matrix-org/matrix-react-sdk/pull/8171)).
44+
* Fix beta pill label breaking ([\#8162](https://github.com/matrix-org/matrix-react-sdk/pull/8162)). Fixes vector-im/element-web#21566. Contributed by @luixxiul.
45+
* Strip relations when forwarding ([\#7929](https://github.com/matrix-org/matrix-react-sdk/pull/7929)). Fixes vector-im/element-web#19769, vector-im/element-web#18067 vector-im/element-web#21015 and vector-im/element-web#10924.
46+
* Don't try (and fail) to show replies for redacted events ([\#8141](https://github.com/matrix-org/matrix-react-sdk/pull/8141)). Fixes vector-im/element-web#21435.
47+
* Fix 3pid member info for space member list ([\#8128](https://github.com/matrix-org/matrix-react-sdk/pull/8128)). Fixes vector-im/element-web#21534.
48+
* Set max-width to user context menu ([\#8089](https://github.com/matrix-org/matrix-react-sdk/pull/8089)). Fixes vector-im/element-web#21486. Contributed by @luixxiul.
49+
* Fix issue with falsey hrefs being sent in events ([\#8113](https://github.com/matrix-org/matrix-react-sdk/pull/8113)). Fixes vector-im/element-web#21417.
50+
* Make video sizing consistent with images ([\#8102](https://github.com/matrix-org/matrix-react-sdk/pull/8102)). Fixes vector-im/element-web#20072.
351

452
Changes in [3.42.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.0) (2022-03-15)
553
=====================================================================================================

__mocks__/maplibre-gl.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const { LngLat, NavigationControl } = require('maplibre-gl');
44
class MockMap extends EventEmitter {
55
addControl = jest.fn();
66
removeControl = jest.fn();
7+
zoomIn = jest.fn();
8+
zoomOut = jest.fn();
9+
setCenter = jest.fn();
10+
setStyle = jest.fn();
711
}
812
const MockMapInstance = new MockMap();
913

@@ -14,10 +18,11 @@ const MockGeolocateInstance = new MockGeolocateControl();
1418
const MockMarker = {}
1519
MockMarker.setLngLat = jest.fn().mockReturnValue(MockMarker);
1620
MockMarker.addTo = jest.fn().mockReturnValue(MockMarker);
21+
MockMarker.remove = jest.fn().mockReturnValue(MockMarker);
1722
module.exports = {
1823
Map: jest.fn().mockReturnValue(MockMapInstance),
1924
GeolocateControl: jest.fn().mockReturnValue(MockGeolocateInstance),
2025
Marker: jest.fn().mockReturnValue(MockMarker),
2126
LngLat,
22-
NavigationControl
27+
NavigationControl,
2328
};

docs/slate-formats.md

Lines changed: 0 additions & 88 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.42.1",
3+
"version": "3.42.3",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {

res/css/_components.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
@import "./_font-sizes.scss";
55
@import "./_font-weights.scss";
66
@import "./_spacing.scss";
7+
@import "./components/views/beacon/_BeaconStatus.scss";
78
@import "./components/views/beacon/_LeftPanelLiveShareWarning.scss";
9+
@import "./components/views/beacon/_LiveTimeRemaining.scss";
810
@import "./components/views/beacon/_RoomLiveShareWarning.scss";
911
@import "./components/views/beacon/_StyledLiveBeaconIcon.scss";
1012
@import "./components/views/location/_LiveDurationDropdown.scss";
@@ -13,6 +15,8 @@
1315
@import "./components/views/location/_Marker.scss";
1416
@import "./components/views/location/_ShareDialogButtons.scss";
1517
@import "./components/views/location/_ShareType.scss";
18+
@import "./components/views/location/_ZoomButtons.scss";
19+
@import "./components/views/messages/_MBeaconBody.scss";
1620
@import "./components/views/spaces/_QuickThemeSwitcher.scss";
1721
@import "./structures/_AutoHideScrollbar.scss";
1822
@import "./structures/_BackdropPanel.scss";
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
Copyright 2022 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+
.mx_BeaconStatus {
18+
display: flex;
19+
flex-direction: row;
20+
align-items: center;
21+
justify-content: flex-start;
22+
23+
box-sizing: border-box;
24+
padding: $spacing-8;
25+
26+
color: var(--color);
27+
font-size: $font-12px;
28+
}
29+
30+
.mx_BeaconStatus_Loading,
31+
.mx_BeaconStatus_Stopped {
32+
--color: $tertiary-content;
33+
}
34+
35+
.mx_BeaconStatus_Active,
36+
.mx_BeaconStatus_Error {
37+
--color: $primary-content;
38+
}
39+
40+
.mx_BeaconStatus_icon {
41+
height: 32px;
42+
width: 32px;
43+
44+
flex: 0 0 32px;
45+
margin-right: $spacing-8;
46+
}
47+
48+
.mx_BeaconStatus_activeDescription {
49+
flex: 1;
50+
display: flex;
51+
flex-direction: column;
52+
line-height: $font-14px;
53+
}
54+
55+
.mx_BeaconStatus_stopButton {
56+
// override button link_inline styles
57+
color: $alert !important;
58+
font-weight: $font-semi-bold !important;
59+
text-transform: uppercase;
60+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Copyright 2022 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+
.mx_LiveTimeRemaining {
18+
color: $secondary-content;
19+
font-size: $font-12px;
20+
}

res/css/components/views/beacon/_RoomLiveShareWarning.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ limitations under the License.
3939
font-size: $font-15px;
4040
}
4141

42-
.mx_RoomLiveShareWarning_expiry {
43-
color: $secondary-content;
44-
font-size: $font-12px;
45-
margin-right: $spacing-16;
46-
}
47-
4842
.mx_RoomLiveShareWarning_spinner {
4943
margin-right: $spacing-16;
5044
}
@@ -54,6 +48,10 @@ limitations under the License.
5448
margin-left: $spacing-16;
5549
}
5650

51+
.mx_RoomLiveShareWarning_stopButton {
52+
margin-left: $spacing-16;
53+
}
54+
5755
.mx_RoomLiveShareWarning_closeButtonIcon {
5856
height: $font-18px;
5957
padding: $spacing-4;

res/css/components/views/beacon/_StyledLiveBeaconIcon.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ limitations under the License.
3333
background-color: $alert;
3434
border-color: $alert;
3535
}
36+
37+
.mx_StyledLiveBeaconIcon.mx_StyledLiveBeaconIcon_idle {
38+
background-color: $quaternary-content;
39+
border-color: $quaternary-content;
40+
}

0 commit comments

Comments
 (0)