Skip to content

Commit 90b8dae

Browse files
author
William Kray
committed
Merge tag 'v3.27.0' into wreck/v3.27.0-wrecked
* Sanitize untrusted variables from message previews before translation Fixes element-hq/element-web#18314 * Fix editing of `<sub>` & `<sup`> & `<u>` [\matrix-org#6469](matrix-org#6469) Fixes element-hq/element-web#18211 * Zoom images in lightbox to where the cursor points [\matrix-org#6418](matrix-org#6418) Fixes element-hq/element-web#17870 * Avoid hitting the settings store from TextForEvent [\matrix-org#6205](matrix-org#6205) Fixes element-hq/element-web#17650 * Initial MSC3083 + MSC3244 support [\matrix-org#6212](matrix-org#6212) Fixes element-hq/element-web#17686 and element-hq/element-web#17661 * Navigate to the first room with notifications when clicked on space notification dot [\matrix-org#5974](matrix-org#5974) * Add matrix: to the list of permitted URL schemes [\matrix-org#6388](matrix-org#6388) * Add "Copy Link" to room context menu [\matrix-org#6374](matrix-org#6374) * 💭 Message bubble layout [\matrix-org#6291](matrix-org#6291) Fixes element-hq/element-web#4635, element-hq/element-web#17773 element-hq/element-web#16220 and element-hq/element-web#7687 * Play only one audio file at a time [\matrix-org#6417](matrix-org#6417) Fixes element-hq/element-web#17439 * Move download button for media to the action bar [\matrix-org#6386](matrix-org#6386) Fixes element-hq/element-web#17943 * Improved display of one-to-one call history with summary boxes for each call [\matrix-org#6121](matrix-org#6121) Fixes element-hq/element-web#16409 * Notification settings UI refresh [\matrix-org#6352](matrix-org#6352) Fixes element-hq/element-web#17782 * Fix EventIndex double handling events and erroring [\matrix-org#6385](matrix-org#6385) Fixes element-hq/element-web#18008 * Improve reply rendering [\matrix-org#3553](matrix-org#3553) Fixes element-hq/element-web#9217, element-hq/element-web#7633, element-hq/element-web#7530, element-hq/element-web#7169, element-hq/element-web#7151, element-hq/element-web#6692 element-hq/element-web#6579 and element-hq/element-web#17440 * Fix CreateRoomDialog exploding when making public room outside of a space [\matrix-org#6493](matrix-org#6493) * Fix regression where registration would soft-crash on captcha [\matrix-org#6505](matrix-org#6505) Fixes element-hq/element-web#18284 * only send join rule event if we have a join rule to put in it [\matrix-org#6517](matrix-org#6517) * Improve the new download button's discoverability and interactions. [\matrix-org#6510](matrix-org#6510) * Fix voice recording UI looking broken while microphone permissions are being requested. [\matrix-org#6479](matrix-org#6479) Fixes element-hq/element-web#18223 * Match colors of room and user avatars in DMs [\matrix-org#6393](matrix-org#6393) Fixes element-hq/element-web#2449 * Fix onPaste handler to work with copying files from Finder [\matrix-org#5389](matrix-org#5389) Fixes element-hq/element-web#15536 and element-hq/element-web#16255 * Fix infinite pagination loop when offline [\matrix-org#6478](matrix-org#6478) Fixes element-hq/element-web#18242 * Fix blurhash rounded corners missing regression [\matrix-org#6467](matrix-org#6467) Fixes element-hq/element-web#18110 * Fix position of the space hierarchy spinner [\matrix-org#6462](matrix-org#6462) Fixes element-hq/element-web#18182 * Fix display of image messages that lack thumbnails [\matrix-org#6456](matrix-org#6456) Fixes element-hq/element-web#18175 * Fix crash with large audio files. [\matrix-org#6436](matrix-org#6436) Fixes element-hq/element-web#18149 * Make diff colors in codeblocks more pleasant [\matrix-org#6355](matrix-org#6355) Fixes element-hq/element-web#17939 * Show the correct audio file duration while loading the file. [\matrix-org#6435](matrix-org#6435) Fixes element-hq/element-web#18160 * Fix various timeline settings not applying immediately. [\matrix-org#6261](matrix-org#6261) Fixes element-hq/element-web#17748 * Fix issues with room list duplication [\matrix-org#6391](matrix-org#6391) Fixes element-hq/element-web#14508 * Fix grecaptcha throwing useless error sometimes [\matrix-org#6401](matrix-org#6401) Fixes element-hq/element-web#15142 * Update Emojibase and Twemoji and switch to IamCal (Slack-style) shortcodes [\matrix-org#6347](matrix-org#6347) Fixes element-hq/element-web#13857 and element-hq/element-web#13334 * Respect compound emojis in default avatar initial generation [\matrix-org#6397](matrix-org#6397) Fixes element-hq/element-web#18040 * Fix bug where the 'other homeserver' field in the server selection dialog would become briefly focus and then unfocus when clicked. [\matrix-org#6394](matrix-org#6394) Fixes element-hq/element-web#18031 * Standardise spelling and casing of homeserver, identity server, and integration manager [\matrix-org#6365](matrix-org#6365) * Fix widgets not receiving decrypted events when they have permission. [\matrix-org#6371](matrix-org#6371) Fixes element-hq/element-web#17615 * Prevent client hangs when calculating blurhashes [\matrix-org#6366](matrix-org#6366) Fixes element-hq/element-web#17945 * Exclude state events from widgets reading room events [\matrix-org#6378](matrix-org#6378) * Cache feature_spaces\* flags to improve performance [\matrix-org#6381](matrix-org#6381)
2 parents b26b9f9 + e77f731 commit 90b8dae

File tree

5 files changed

+113
-192
lines changed

5 files changed

+113
-192
lines changed

CHANGELOG.md

Lines changed: 93 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,213 +1,121 @@
1-
Changes in [3.27.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.27.0-rc.1) (2021-07-27)
2-
===============================================================================================================
3-
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v3.26.0...v3.27.0-rc.1)
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
47

5-
* Fix timing of voice message recording UI appearing
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.
660
[\#6479](https://github.com/matrix-org/matrix-react-sdk/pull/6479)
7-
* Fix PiP resize issues
8-
[\#6483](https://github.com/matrix-org/matrix-react-sdk/pull/6483)
9-
* Translations update from Weblate
10-
[\#6482](https://github.com/matrix-org/matrix-react-sdk/pull/6482)
11-
* Make new reply UI clickable
12-
[\#6474](https://github.com/matrix-org/matrix-react-sdk/pull/6474)
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
1368
* Fix infinite pagination loop when offline
1469
[\#6478](https://github.com/matrix-org/matrix-react-sdk/pull/6478)
15-
* Fix deleted message left offset in the timeline
16-
[\#6473](https://github.com/matrix-org/matrix-react-sdk/pull/6473)
17-
* Fix broken layout of the space hierarchy view
18-
[\#6481](https://github.com/matrix-org/matrix-react-sdk/pull/6481)
19-
* Add data-layout to MELS for better CSS structure
20-
[\#6480](https://github.com/matrix-org/matrix-react-sdk/pull/6480)
21-
* Style markdown quotes
22-
[\#6468](https://github.com/matrix-org/matrix-react-sdk/pull/6468)
23-
* Update ESLint Config
24-
[\#6476](https://github.com/matrix-org/matrix-react-sdk/pull/6476)
25-
* Fix VoIP event tile issues
26-
[\#6471](https://github.com/matrix-org/matrix-react-sdk/pull/6471)
27-
* Fix editing of <sub> & <sup> & <u>
28-
[\#6469](https://github.com/matrix-org/matrix-react-sdk/pull/6469)
29-
* Fix avatar overlapping with timestamp
30-
[\#6461](https://github.com/matrix-org/matrix-react-sdk/pull/6461)
31-
* Fix reactions row pushing content on IRC layout
32-
[\#6464](https://github.com/matrix-org/matrix-react-sdk/pull/6464)
70+
Fixes vector-im/element-web#18242
3371
* Fix blurhash rounded corners missing regression
3472
[\#6467](https://github.com/matrix-org/matrix-react-sdk/pull/6467)
35-
* Adhere to better eslint rules
36-
[\#6459](https://github.com/matrix-org/matrix-react-sdk/pull/6459)
37-
* Clean up voice messages code
38-
[\#6453](https://github.com/matrix-org/matrix-react-sdk/pull/6453)
73+
Fixes vector-im/element-web#18110
3974
* Fix position of the space hierarchy spinner
4075
[\#6462](https://github.com/matrix-org/matrix-react-sdk/pull/6462)
41-
* Fix clipped avatar in room list
42-
[\#6463](https://github.com/matrix-org/matrix-react-sdk/pull/6463)
43-
* Make inline events feel less claustrophobic in bubble layout
44-
[\#6460](https://github.com/matrix-org/matrix-react-sdk/pull/6460)
45-
* Initial MSC3083 + MSC3244 support
46-
[\#6212](https://github.com/matrix-org/matrix-react-sdk/pull/6212)
47-
* Add event selected state for message bubbles
48-
[\#6449](https://github.com/matrix-org/matrix-react-sdk/pull/6449)
49-
* Make images fit inside message bubble
50-
[\#6448](https://github.com/matrix-org/matrix-react-sdk/pull/6448)
51-
* Don't show scrollbar for URL previews
52-
[\#6450](https://github.com/matrix-org/matrix-react-sdk/pull/6450)
76+
Fixes vector-im/element-web#18182
5377
* Fix display of image messages that lack thumbnails
5478
[\#6456](https://github.com/matrix-org/matrix-react-sdk/pull/6456)
55-
* Fix avatar obstructing membership and state changes
56-
[\#6439](https://github.com/matrix-org/matrix-react-sdk/pull/6439)
57-
* Zoom images in lightbox to where the cursor points
58-
[\#6418](https://github.com/matrix-org/matrix-react-sdk/pull/6418)
59-
* Always display the Sender in the reply tile
60-
[\#6446](https://github.com/matrix-org/matrix-react-sdk/pull/6446)
61-
* Use modern layout in file and notification panel
62-
[\#6447](https://github.com/matrix-org/matrix-react-sdk/pull/6447)
63-
* Add right padding for event replies
64-
[\#6444](https://github.com/matrix-org/matrix-react-sdk/pull/6444)
65-
* Fix event tile cut off in share preview
66-
[\#6445](https://github.com/matrix-org/matrix-react-sdk/pull/6445)
67-
* Remove excessive padding after url previews
68-
[\#6443](https://github.com/matrix-org/matrix-react-sdk/pull/6443)
69-
* Make quotes thinner
70-
[\#6441](https://github.com/matrix-org/matrix-react-sdk/pull/6441)
71-
* Prevent action bar to overlap the event content
72-
[\#6438](https://github.com/matrix-org/matrix-react-sdk/pull/6438)
73-
* Use a MediaElementSourceAudioNode to process large audio files
79+
Fixes vector-im/element-web#18175
80+
* Fix crash with large audio files.
7481
[\#6436](https://github.com/matrix-org/matrix-react-sdk/pull/6436)
75-
* Revert 100% on codeblocks
76-
[\#6440](https://github.com/matrix-org/matrix-react-sdk/pull/6440)
77-
* Fix duration placeholder parsing for audio files
78-
[\#6435](https://github.com/matrix-org/matrix-react-sdk/pull/6435)
79-
* Handle upload errors in voice messages
80-
[\#6434](https://github.com/matrix-org/matrix-react-sdk/pull/6434)
81-
* Render error state for audio components
82-
[\#6433](https://github.com/matrix-org/matrix-react-sdk/pull/6433)
83-
* Clean up visual style of files and voice messages
84-
[\#6432](https://github.com/matrix-org/matrix-react-sdk/pull/6432)
85-
* Convert a few things to TS
86-
[\#6413](https://github.com/matrix-org/matrix-react-sdk/pull/6413)
87-
* Fix onPaste handler to work with copying files from Finder
88-
[\#5389](https://github.com/matrix-org/matrix-react-sdk/pull/5389)
89-
* Increase hit area for timestamp in message bubbles
90-
[\#6428](https://github.com/matrix-org/matrix-react-sdk/pull/6428)
91-
* Navigate to the first room with notifications when clicked on space
92-
notification dot
93-
[\#5974](https://github.com/matrix-org/matrix-react-sdk/pull/5974)
94-
* Add matrix: to the list of permitted URL schemes
95-
[\#6388](https://github.com/matrix-org/matrix-react-sdk/pull/6388)
82+
Fixes vector-im/element-web#18149
9683
* Make diff colors in codeblocks more pleasant
9784
[\#6355](https://github.com/matrix-org/matrix-react-sdk/pull/6355)
98-
* Add alwaysShowTimestamps and others to RoomView setting watchers
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.
9990
[\#6261](https://github.com/matrix-org/matrix-react-sdk/pull/6261)
100-
* Restore 'use default' naming on room notifications
101-
[\#6431](https://github.com/matrix-org/matrix-react-sdk/pull/6431)
102-
* Use cached value to read member count
103-
[\#6429](https://github.com/matrix-org/matrix-react-sdk/pull/6429)
104-
* yarn upgrade
105-
[\#6430](https://github.com/matrix-org/matrix-react-sdk/pull/6430)
106-
* Improve new layout switcher UI
107-
[\#6427](https://github.com/matrix-org/matrix-react-sdk/pull/6427)
108-
* Play only one audio file at a time
109-
[\#6417](https://github.com/matrix-org/matrix-react-sdk/pull/6417)
110-
* Improve file labeling in replies
111-
[\#6404](https://github.com/matrix-org/matrix-react-sdk/pull/6404)
112-
* Fix replies line clamping
113-
[\#6425](https://github.com/matrix-org/matrix-react-sdk/pull/6425)
114-
* Add null guard for room prop in EventTile
115-
[\#6426](https://github.com/matrix-org/matrix-react-sdk/pull/6426)
116-
* Fix font slider preview for message bubbles
117-
[\#6421](https://github.com/matrix-org/matrix-react-sdk/pull/6421)
118-
* Add spoiler support for message bubbles
119-
[\#6419](https://github.com/matrix-org/matrix-react-sdk/pull/6419)
120-
* Fix error when hovering over non-emoji reactions
121-
[\#6416](https://github.com/matrix-org/matrix-react-sdk/pull/6416)
122-
* Fix sticker display for message bubbles
123-
[\#6423](https://github.com/matrix-org/matrix-react-sdk/pull/6423)
124-
* Reintroduce grouped events padding on modern layout
125-
[\#6420](https://github.com/matrix-org/matrix-react-sdk/pull/6420)
126-
* TypeScript migration for auth components
127-
[\#6412](https://github.com/matrix-org/matrix-react-sdk/pull/6412)
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
12895
* Fix grecaptcha throwing useless error sometimes
12996
[\#6401](https://github.com/matrix-org/matrix-react-sdk/pull/6401)
130-
* Move download button for media to the action bar
131-
[\#6386](https://github.com/matrix-org/matrix-react-sdk/pull/6386)
132-
* Remove hover effect from files in the files panel
133-
[\#6405](https://github.com/matrix-org/matrix-react-sdk/pull/6405)
134-
* Revert accidental renaming of dispatcherRef
135-
[\#6415](https://github.com/matrix-org/matrix-react-sdk/pull/6415)
136-
* Add VoIP event tiles
137-
[\#6121](https://github.com/matrix-org/matrix-react-sdk/pull/6121)
97+
Fixes vector-im/element-web#15142
13898
* Update Emojibase and Twemoji and switch to IamCal (Slack-style) shortcodes
13999
[\#6347](https://github.com/matrix-org/matrix-react-sdk/pull/6347)
140-
* Conform to new react and typescript eslint rules
141-
[\#6408](https://github.com/matrix-org/matrix-react-sdk/pull/6408)
142-
* Remove unwanted comma in EventTile
143-
[\#6414](https://github.com/matrix-org/matrix-react-sdk/pull/6414)
144-
* 💭 Message bubble layout
145-
[\#6291](https://github.com/matrix-org/matrix-react-sdk/pull/6291)
146-
* Fix sticker placeholder centering
147-
[\#6411](https://github.com/matrix-org/matrix-react-sdk/pull/6411)
148-
* Fix avatar placeholders not getting capitalized
149-
[\#6407](https://github.com/matrix-org/matrix-react-sdk/pull/6407)
150-
* Revert order of notification setting radios
151-
[\#6406](https://github.com/matrix-org/matrix-react-sdk/pull/6406)
100+
Fixes vector-im/element-web#13857 and vector-im/element-web#13334
152101
* Respect compound emojis in default avatar initial generation
153102
[\#6397](https://github.com/matrix-org/matrix-react-sdk/pull/6397)
154-
* Update eslint-plugin-matrix-org
155-
[\#6403](https://github.com/matrix-org/matrix-react-sdk/pull/6403)
156-
* Rename Copy Link to Copy Room Link
157-
[\#6402](https://github.com/matrix-org/matrix-react-sdk/pull/6402)
158-
* Don't throw exception from setStickyRoom as it split-brains the
159-
RoomListStore
160-
[\#6399](https://github.com/matrix-org/matrix-react-sdk/pull/6399)
161-
* Fix bug where 'other homeserver' would unfocus
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.
162105
[\#6394](https://github.com/matrix-org/matrix-react-sdk/pull/6394)
163-
* Cleanup reply code
164-
[\#6392](https://github.com/matrix-org/matrix-react-sdk/pull/6392)
165-
* Match colors of room and user avatars in DMs
166-
[\#6393](https://github.com/matrix-org/matrix-react-sdk/pull/6393)
167-
* Remove title from Image View
168-
[\#6395](https://github.com/matrix-org/matrix-react-sdk/pull/6395)
169-
* Notification settings UI refresh
170-
[\#6352](https://github.com/matrix-org/matrix-react-sdk/pull/6352)
171-
* Avoid hitting the settings store from TextForEvent
172-
[\#6205](https://github.com/matrix-org/matrix-react-sdk/pull/6205)
173-
* Fix issues with room list duplication
174-
[\#6391](https://github.com/matrix-org/matrix-react-sdk/pull/6391)
175-
* Use URLSearchParams instead of transitive dependency `querystring`
176-
[\#4399](https://github.com/matrix-org/matrix-react-sdk/pull/4399)
177-
* Add "Copy Link" to room context menu
178-
[\#6374](https://github.com/matrix-org/matrix-react-sdk/pull/6374)
179-
* Fix EventIndex double handling events and erroring
180-
[\#6385](https://github.com/matrix-org/matrix-react-sdk/pull/6385)
181-
* Fix IRC layout replies
182-
[\#6387](https://github.com/matrix-org/matrix-react-sdk/pull/6387)
183-
* Improve reply rendering
184-
[\#3553](https://github.com/matrix-org/matrix-react-sdk/pull/3553)
185-
* Update PR template for new changelog generation
186-
[\#6380](https://github.com/matrix-org/matrix-react-sdk/pull/6380)
187-
* Silence / Fix some console warnings/errors
188-
[\#6382](https://github.com/matrix-org/matrix-react-sdk/pull/6382)
189-
* Cache value of feature_spaces* flags as they cause page refresh so are
190-
immutable
191-
[\#6381](https://github.com/matrix-org/matrix-react-sdk/pull/6381)
192-
* Standardise spelling and casing of homeserver, identity server, and
193-
integration manager
106+
Fixes vector-im/element-web#18031
107+
* Standardise spelling and casing of homeserver, identity server, and integration manager
194108
[\#6365](https://github.com/matrix-org/matrix-react-sdk/pull/6365)
195-
* Convert CONTRIBUTING to markdown
196-
[\#6379](https://github.com/matrix-org/matrix-react-sdk/pull/6379)
197-
* Move blurhashing into a Worker and use OffscreenCanvas for thumbnailing
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
198113
[\#6366](https://github.com/matrix-org/matrix-react-sdk/pull/6366)
114+
Fixes vector-im/element-web#17945
199115
* Exclude state events from widgets reading room events
200116
[\#6378](https://github.com/matrix-org/matrix-react-sdk/pull/6378)
201-
* Use webpack worker-loader instead of homegrown hack
202-
[\#6356](https://github.com/matrix-org/matrix-react-sdk/pull/6356)
203-
* Send clear events to widgets when permitted
204-
[\#6371](https://github.com/matrix-org/matrix-react-sdk/pull/6371)
205-
* Comment why end to end tests are only on the develop branch
206-
[\#6377](https://github.com/matrix-org/matrix-react-sdk/pull/6377)
207-
* Improve and consolidate typing
208-
[\#6345](https://github.com/matrix-org/matrix-react-sdk/pull/6345)
209-
* Fix 'User' type import
210-
[\#6375](https://github.com/matrix-org/matrix-react-sdk/pull/6375)
117+
* Cache feature_spaces\* flags to improve performance
118+
[\#6381](https://github.com/matrix-org/matrix-react-sdk/pull/6381)
211119

212120
Changes in [3.26.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.26.0) (2021-07-19)
213121
=====================================================================================================

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.27.0-rc.1",
3+
"version": "3.27.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -80,7 +80,7 @@
8080
"katex": "^0.12.0",
8181
"linkifyjs": "^2.1.9",
8282
"lodash": "^4.17.20",
83-
"matrix-js-sdk": "12.2.0-rc.1",
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",

src/languageHandler.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,17 @@ export function _t(text: string, variables?: IVariables, tags?: Tags): Translate
160160
}
161161
}
162162

163+
/**
164+
* Sanitizes unsafe text for the sanitizer, ensuring references to variables will not be considered
165+
* replaceable by the translation functions.
166+
* @param {string} text The text to sanitize.
167+
* @returns {string} The sanitized text.
168+
*/
169+
export function sanitizeForTranslation(text: string): string {
170+
// Add a non-breaking space so the regex doesn't trigger when translating.
171+
return text.replace(/%\(([^)]*)\)/g, '%\xa0($1)');
172+
}
173+
163174
/*
164175
* Similar to _t(), except only does substitutions, and no translation
165176
* @param {string} text The text, e.g "click <a>here</a> now to %(foo)s".

src/stores/room-list/previews/MessageEventPreview.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
import { IPreview } from "./IPreview";
1818
import { TagID } from "../models";
1919
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
20-
import { _t } from "../../../languageHandler";
20+
import { _t, sanitizeForTranslation } from "../../../languageHandler";
2121
import { getSenderName, isSelf, shouldPrefixMessagesIn } from "./utils";
2222
import ReplyThread from "../../../components/views/elements/ReplyThread";
2323
import { getHtmlText } from "../../../HtmlUtils";
@@ -58,6 +58,8 @@ export class MessageEventPreview implements IPreview {
5858
body = getHtmlText(body);
5959
}
6060

61+
body = sanitizeForTranslation(body);
62+
6163
if (msgtype === 'm.emote') {
6264
return _t("* %(senderName)s %(emote)s", { senderName: getSenderName(event), emote: body });
6365
}

0 commit comments

Comments
 (0)