1
0
mirror of https://github.com/tommytran732/Matrix.to-Docker synced 2024-12-03 07:01:33 -05:00

Patch default Element instance

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-03-16 21:56:26 -04:00
parent 6c717e1db0
commit 73097eca3f
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
2 changed files with 18 additions and 1 deletions

View File

@ -15,9 +15,12 @@ WORKDIR /home/matrix-to
RUN git clone https://github.com/matrix-org/matrix.to
COPY element.patch /home/matrix-to/matrix.to
WORKDIR /home/matrix-to/matrix.to
RUN yarn \
RUN git apply /home/matrix-to/matrix.to/element.patch \
&& yarn \
&& yarn build
EXPOSE 5000

14
element.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/src/open/clients/Element.js b/src/open/clients/Element.js
index e43199f..badeb6b 100644
--- a/src/open/clients/Element.js
+++ b/src/open/clients/Element.js
@@ -18,7 +18,8 @@ import {Maturity, Platform, LinkKind,
FDroidLink, AppleStoreLink, PlayStoreLink, WebsiteLink} from "../types.js";
const trustedWebInstances = [
- "app.element.io", // first one is the default one
+ "element.arcticfoxes.net", // first one is the default one
+ "app.element.io",
"develop.element.io",
"chat.fedoraproject.org",
"chat.fosdem.org",