Skip to content

Commit c0cd073

Browse files
Merge tag 'v1.7.15' into AMP.chat
[Full Changelog](element-hq/element-web@v1.7.15-rc.1...v1.7.15) * Upgrade to React SDK 3.10.0 and JS SDK 9.3.0 Change-Id: I90c26dd1db1efc3540e7a9f1216d660c8c1b786d
2 parents 1262ace + 1b481c2 commit c0cd073

Some content is hidden

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

48 files changed

+474
-170
lines changed

.stylelintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
"at-rule-no-unknown": null,
2020
"no-descending-specificity": null,
2121
"scss/at-rule-no-unknown": [true, {
22-
// https://github.com/vector-im/riot-web/issues/10544
22+
// https://github.com/vector-im/element-web/issues/10544
2323
"ignoreAtRules": ["define-mixin"],
2424
}],
2525
}

AUTHORS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ include:
1616

1717
* Alexandr Korsak (https://github.com/oivoodoo)
1818
Improved multiple file uploading
19+
20+
* Thom Cleary (https://github.com/thomcatdotrocks)
21+
Small update for tarball deployment

CHANGELOG.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,121 @@
1+
Changes in [1.7.15](https://github.com/vector-im/element-web/releases/tag/v1.7.15) (2020-12-07)
2+
===============================================================================================
3+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.15-rc.1...v1.7.15)
4+
5+
* Upgrade to React SDK 3.10.0 and JS SDK 9.3.0
6+
7+
Changes in [1.7.15-rc.1](https://github.com/vector-im/element-web/releases/tag/v1.7.15-rc.1) (2020-12-02)
8+
=========================================================================================================
9+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.14...v1.7.15-rc.1)
10+
11+
* Upgrade to React SDK 3.10.0-rc.1 and JS SDK 9.3.0-rc.1
12+
* Include KaTeX CSS as a dependency
13+
[\#15843](https://github.com/vector-im/element-web/pull/15843)
14+
* Translations update from Weblate
15+
[\#15884](https://github.com/vector-im/element-web/pull/15884)
16+
* added katex.min.css to webpack for math support (main PR in matrix-react-
17+
sdk)
18+
[\#15277](https://github.com/vector-im/element-web/pull/15277)
19+
* Rebrand package name and other details
20+
[\#15828](https://github.com/vector-im/element-web/pull/15828)
21+
* Bump highlight.js from 9.18.1 to 10.1.2
22+
[\#15819](https://github.com/vector-im/element-web/pull/15819)
23+
* Update branding of packaging artifacts
24+
[\#15810](https://github.com/vector-im/element-web/pull/15810)
25+
* Update the react-sdk reference in the lockfile
26+
[\#15814](https://github.com/vector-im/element-web/pull/15814)
27+
* Update widget API for good measure in Element Web
28+
[\#15812](https://github.com/vector-im/element-web/pull/15812)
29+
* Stop publishing Element to NPM
30+
[\#15811](https://github.com/vector-im/element-web/pull/15811)
31+
* Add inotify instance limit info to README
32+
[\#15795](https://github.com/vector-im/element-web/pull/15795)
33+
34+
Changes in [1.7.14](https://github.com/vector-im/element-web/releases/tag/v1.7.14) (2020-11-23)
35+
===============================================================================================
36+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.14-rc.1...v1.7.14)
37+
38+
* Upgrade to React SDK 3.9.0 and JS SDK 9.2.0
39+
40+
Changes in [1.7.14-rc.1](https://github.com/vector-im/element-web/releases/tag/v1.7.14-rc.1) (2020-11-18)
41+
=========================================================================================================
42+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.13...v1.7.14-rc.1)
43+
44+
* Upgrade to React SDK 3.9.0-rc.1 and JS SDK 9.2.0-rc.1
45+
* Translations update from Weblate
46+
[\#15767](https://github.com/vector-im/element-web/pull/15767)
47+
* Update the widget-api for element-web
48+
[\#15717](https://github.com/vector-im/element-web/pull/15717)
49+
50+
Changes in [1.7.13](https://github.com/vector-im/element-web/releases/tag/v1.7.13) (2020-11-09)
51+
===============================================================================================
52+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.13-rc.1...v1.7.13)
53+
54+
* Upgrade to React SDK 3.8.0 and JS SDK 9.1.0
55+
56+
Changes in [1.7.13-rc.1](https://github.com/vector-im/element-web/releases/tag/v1.7.13-rc.1) (2020-11-04)
57+
=========================================================================================================
58+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.12...v1.7.13-rc.1)
59+
60+
* Upgrade to React SDK 3.8.0-rc.1 and JS SDK 9.1.0-rc.1
61+
* Translations update from Weblate
62+
[\#15644](https://github.com/vector-im/element-web/pull/15644)
63+
* Add countly experiment to develop/nightly configs
64+
[\#15614](https://github.com/vector-im/element-web/pull/15614)
65+
* Add documentation for new UIFeature flag regarding room history settings
66+
[\#15592](https://github.com/vector-im/element-web/pull/15592)
67+
* Rename Docker repo in docs
68+
[\#15590](https://github.com/vector-im/element-web/pull/15590)
69+
* Fix Jitsi regressions with custom themes
70+
[\#15575](https://github.com/vector-im/element-web/pull/15575)
71+
72+
Changes in [1.7.12](https://github.com/vector-im/element-web/releases/tag/v1.7.12) (2020-10-28)
73+
===============================================================================================
74+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.11...v1.7.12)
75+
76+
* Upgrade to React SDK 3.7.1 and JS SDK 9.0.1
77+
* [Release] Fix Jitsi regressions with custom themes
78+
[\#15577](https://github.com/vector-im/element-web/pull/15577)
79+
80+
Changes in [1.7.11](https://github.com/vector-im/element-web/releases/tag/v1.7.11) (2020-10-26)
81+
===============================================================================================
82+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.11-rc.1...v1.7.11)
83+
84+
* Upgrade to React SDK 3.7.0 and JS SDK 9.0.0
85+
86+
Changes in [1.7.11-rc.1](https://github.com/vector-im/element-web/releases/tag/v1.7.11-rc.1) (2020-10-21)
87+
=========================================================================================================
88+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.10...v1.7.11-rc.1)
89+
90+
* Upgrade to React SDK 3.7.0-rc.2 and JS SDK 9.0.0-rc.1
91+
* Update Weblate URL
92+
[\#15516](https://github.com/vector-im/element-web/pull/15516)
93+
* Translations update from Weblate
94+
[\#15517](https://github.com/vector-im/element-web/pull/15517)
95+
* Jitsi accept theme variable and restyle
96+
[\#15499](https://github.com/vector-im/element-web/pull/15499)
97+
* Skip editor confirmation of upgrades
98+
[\#15506](https://github.com/vector-im/element-web/pull/15506)
99+
* Adjust for new widget messaging APIs
100+
[\#15495](https://github.com/vector-im/element-web/pull/15495)
101+
* Use HTTPS_PROXY environment variable for downloading external_api.min…
102+
[\#15479](https://github.com/vector-im/element-web/pull/15479)
103+
* Document customisation points
104+
[\#15475](https://github.com/vector-im/element-web/pull/15475)
105+
* Don't fatally end the Jitsi widget when it's not being used as a widget
106+
[\#15466](https://github.com/vector-im/element-web/pull/15466)
107+
* electron-platform: Pass the user/devce id pair when initializing the event
108+
index.
109+
[\#15455](https://github.com/vector-im/element-web/pull/15455)
110+
111+
Changes in [1.7.10](https://github.com/vector-im/element-web/releases/tag/v1.7.10) (2020-10-20)
112+
===============================================================================================
113+
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.9...v1.7.10)
114+
115+
* [Release] Adjust for new widget messaging APIs
116+
[\#15497](https://github.com/vector-im/element-web/pull/15497)
117+
* Upgrade to React SDK 3.6.1
118+
1119
Changes in [1.7.9](https://github.com/vector-im/element-web/releases/tag/v1.7.9) (2020-10-12)
2120
=============================================================================================
3121
[Full Changelog](https://github.com/vector-im/element-web/compare/v1.7.9-rc.1...v1.7.9)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM node:12 as builder
55
# images of riot-web develop.
66
ARG USE_CUSTOM_SDKS=true
77
ARG REACT_SDK_REPO="https://github.com/awesome-technologies/matrix-react-sdk.git"
8-
ARG REACT_SDK_BRANCH="2020.09.1-amp.chat"
8+
ARG REACT_SDK_BRANCH="2020.12.0-amp.chat"
99

1010
RUN apt-get update && apt-get install -y git dos2unix \
1111
# These packages are required for building Canvas on architectures like Arm

README.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ released version of Element:
3939

4040
1. Download the latest version from https://github.com/vector-im/element-web/releases
4141
1. Untar the tarball on your web server
42-
1. Move (or symlink) the `riot-x.x.x` directory to an appropriate name
42+
1. Move (or symlink) the `element-x.x.x` directory to an appropriate name
4343
1. Configure the correct caching headers in your webserver (see below)
4444
1. If desired, copy `config.sample.json` to `config.json` and edit it
4545
as desired. See the [configuration docs](docs/config.md) for details.
4646
1. Enter the URL into your browser and log into Element!
4747

4848
Releases are signed using gpg and the OpenPGP standard, and can be checked against the public key located
49-
at https://packages.riot.im/riot-release-key.asc.
49+
at https://packages.riot.im/element-release-key.asc.
5050

5151
Note that for the security of your chats will need to serve Element
5252
over HTTPS. Major browsers also do not allow you to use VoIP/video
@@ -129,14 +129,14 @@ Running from Docker
129129
The Docker image can be used to serve element-web as a web server. The easiest way to use
130130
it is to use the prebuilt image:
131131
```bash
132-
docker run -p 80:80 vectorim/riot-web
132+
docker run -p 80:80 vectorim/element-web
133133
```
134134

135135
To supply your own custom `config.json`, map a volume to `/app/config.json`. For example,
136136
if your custom config was located at `/etc/element-web/config.json` then your Docker command
137137
would be:
138138
```bash
139-
docker run -p 80:80 -v /etc/element-web/config.json:/app/config.json vectorim/riot-web
139+
docker run -p 80:80 -v /etc/element-web/config.json:/app/config.json vectorim/element-web
140140
```
141141

142142
To build the image yourself:
@@ -275,22 +275,29 @@ modifying it. See the [configuration docs](docs/config.md) for details.
275275
Open http://127.0.0.1:8080/ in your browser to see your newly built Element.
276276

277277
**Note**: The build script uses inotify by default on Linux to monitor directories
278-
for changes. If the inotify watch limit is too low your build will silently fail.
279-
To avoid this issue, we recommend a limit of at least 128M.
278+
for changes. If the inotify limits are too low your build will fail silently or with
279+
`Error: EMFILE: too many open files`. To avoid these issues, we recommend a watch limit
280+
of at least `128M` and instance limit around `512`.
280281

281-
To set a new inotify watch limit, execute:
282+
You may be interested in issues [#15750](https://github.com/vector-im/element-web/issues/15750) and
283+
[#15774](https://github.com/vector-im/element-web/issues/15774) for further details.
284+
285+
To set a new inotify watch and instance limit, execute:
282286

283287
```
284-
$ sudo sysctl fs.inotify.max_user_watches=131072
285-
$ sudo sysctl -p
288+
sudo sysctl fs.inotify.max_user_watches=131072
289+
sudo sysctl fs.inotify.max_user_instances=512
290+
sudo sysctl -p
286291
```
287292

288-
If you wish, you can make this new limit permanent, by executing:
293+
If you wish, you can make the new limits permanent, by executing:
289294

290295
```
291-
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
292-
$ sudo sysctl -p
296+
echo fs.inotify.max_user_watches=131072 | sudo tee -a /etc/sysctl.conf
297+
echo fs.inotify.max_user_instances=512 | sudo tee -a /etc/sysctl.conf
298+
sudo sysctl -p
293299
```
300+
294301
___
295302

296303
When you make changes to `matrix-react-sdk` or `matrix-js-sdk` they should be
@@ -333,7 +340,7 @@ To add a new translation, head to the [translating doc](docs/translating.md).
333340

334341
For a developer guide, see the [translating dev doc](docs/translating-dev.md).
335342

336-
[<img src="https://translate.riot.im/widgets/element-web/-/multi-auto.svg" alt="translationsstatus" width="340">](https://translate.riot.im/engage/element-web/?utm_source=widget)
343+
[<img src="https://translate.element.io/widgets/element-web/-/multi-auto.svg" alt="translationsstatus" width="340">](https://translate.element.io/engage/element-web/?utm_source=widget)
337344

338345
Triaging issues
339346
===============

docs/app-load.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Key:
7474

7575
Notes:
7676
+ A task begins when all its dependencies (arrows going into it) are fulfilled.
77-
+ The success of setting up rageshake is never asserted, riot-web has a fallback path for running without IDB (and thus rageshake).
77+
+ The success of setting up rageshake is never asserted, element-web has a fallback path for running without IDB (and thus rageshake).
7878
+ Everything is awaited to be settled before the Modernizr check, to allow it to make use of things like i18n if they are successful.
7979

8080
Underlying dependencies:

docs/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ decentralised.
152152
Desktop app configuration
153153
=========================
154154

155-
See https://github.com/vector-im/riot-desktop#user-specified-configjson
155+
See https://github.com/vector-im/element-desktop#user-specified-configjson
156156

157157
UI Features
158158
===========
@@ -192,3 +192,5 @@ Currently, the following UI feature flags are supported:
192192
useful if accounts are managed externally.
193193
* `UIFeature.advancedEncryption` - Whether or not advanced encryption options are shown to the
194194
user.
195+
* `UIFeature.roomHistorySettings` - Whether or not the room history settings are shown to the user.
196+
This should only be used if the room history visibility options are managed by the server.

docs/customisations.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Customisations
2+
3+
Element Web and the React SDK support "customisation points" that can be used to
4+
easily add custom logic specific to a particular deployment of Element Web.
5+
6+
An example of this is the [security customisations
7+
module](https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/customisations/Security.ts).
8+
This module in the React SDK only defines some empty functions and their types:
9+
it does not do anything by default.
10+
11+
To make use of these customisation points, you will first need to fork Element
12+
Web so that you can add your own code. Even though the default module is part of
13+
the React SDK, you can still override it from the Element Web layer:
14+
15+
1. Copy the default customisation module to
16+
`element-web/src/customisations/YourNameSecurity.ts`
17+
2. Edit customisations points and make sure export the ones you actually want to
18+
activate
19+
3. Tweak the Element build process to use the customised module instead of the
20+
default by adding this to end of the `plugins` array in `webpack.config.js`:
21+
22+
```js
23+
new webpack.NormalModuleReplacementPlugin(
24+
/src\/customisations\/Security.ts/,
25+
path.resolve(__dirname, 'src/customisations/YourNameSecurity.ts'),
26+
),
27+
```
28+
29+
If we add more customisation modules in the future, we'll likely improve these
30+
steps to remove the need for build changes like the above.
31+
32+
By isolating customisations to their own module, this approach should remove the
33+
chance of merge conflicts when updating your fork, and thus simplify ongoing
34+
maintenance.

docs/jitsi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ should start a new conference on your Jitsi server.
4040
domain will appear later in the URL as a configuration parameter.
4141

4242
**Hint**: If you want everyone on your homeserver to use the same Jitsi server by
43-
default, and you are using riot-web 1.6 or newer, set the following on your homeserver's
43+
default, and you are using element-web 1.6 or newer, set the following on your homeserver's
4444
`/.well-known/matrix/client` config:
4545
```json
4646
{

docs/labs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ to `Settings->Labs`. This list is non-exhaustive and subject to change, chat in
77
**Be warned! Labs features are not finalised, they may be fragile, they may change, they may be
88
dropped. Ask in the room if you are unclear about any details here.**
99

10+
## Render LaTeX maths in messages (`feature_latex_maths`)
11+
12+
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).
13+
1014
## New spinner design (`feature_new_spinner`)
1115

1216
Replaces the old spinner image with a new, svg-based one featuring a sleeker design.

0 commit comments

Comments
 (0)