mirror of
https://github.com/tommytran732/Matrix.to-Docker
synced 2024-12-03 23:21:32 -05:00
Patch default Element instance
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
6c717e1db0
commit
73097eca3f
@ -15,9 +15,12 @@ WORKDIR /home/matrix-to
|
|||||||
|
|
||||||
RUN git clone https://github.com/matrix-org/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
|
WORKDIR /home/matrix-to/matrix.to
|
||||||
|
|
||||||
RUN yarn \
|
RUN git apply /home/matrix-to/matrix.to/element.patch \
|
||||||
|
&& yarn \
|
||||||
&& yarn build
|
&& yarn build
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
14
element.patch
Normal file
14
element.patch
Normal 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",
|
Loading…
Reference in New Issue
Block a user