From 73097eca3fdefcd50bc840ac8994b70e7c615fe3 Mon Sep 17 00:00:00 2001 From: Tommy Date: Thu, 16 Mar 2023 21:56:26 -0400 Subject: [PATCH] Patch default Element instance Signed-off-by: Tommy --- Dockerfile | 5 ++++- element.patch | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 element.patch diff --git a/Dockerfile b/Dockerfile index 6d14335..b4e3cb1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/element.patch b/element.patch new file mode 100644 index 0000000..105ec24 --- /dev/null +++ b/element.patch @@ -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",