From 01a68b1efe7dc09498087ce629edf0986f5518a0 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Wed, 30 Sep 2020 18:19:17 +0200 Subject: [PATCH] Change element.io links to matrix.to links (#614) * Change element.io links to matrix.to links Following to the discussion in codimd/server#496, this commit changes element.io links to matrix.to in the new react-client as well. * Updated cypress test for new link --- cypress/integration/link.spec.ts | 4 ++-- src/components/editor/app-bar/help-button/links.tsx | 2 +- src/components/error-boundary/error-boundary.tsx | 2 +- src/components/landing-layout/footer/social-links.tsx | 2 +- src/links.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/link.spec.ts b/cypress/integration/link.spec.ts index ae42376aa..76d3880fa 100644 --- a/cypress/integration/link.spec.ts +++ b/cypress/integration/link.spec.ts @@ -148,8 +148,8 @@ describe('Links Intro', () => { }) it('Matrix', () => { - cy.get('a[href="https://app.element.io/#/room/#hedgedoc:matrix.org"]') - .checkExternalLink('https://app.element.io/#/room/#hedgedoc:matrix.org') + cy.get('a[href="https://matrix.to/#/#hedgedoc:matrix.org"]') + .checkExternalLink('https://matrix.to/#/#hedgedoc:matrix.org') }) it('Mastodon', () => { diff --git a/src/components/editor/app-bar/help-button/links.tsx b/src/components/editor/app-bar/help-button/links.tsx index 1358ea113..db8bf3743 100644 --- a/src/components/editor/app-bar/help-button/links.tsx +++ b/src/components/editor/app-bar/help-button/links.tsx @@ -29,7 +29,7 @@ export const Links: React.FC = () => { diff --git a/src/components/error-boundary/error-boundary.tsx b/src/components/error-boundary/error-boundary.tsx index dff361599..5387b74fb 100644 --- a/src/components/error-boundary/error-boundary.tsx +++ b/src/components/error-boundary/error-boundary.tsx @@ -38,7 +38,7 @@ export class ErrorBoundary extends Component {

Don't worry, this happens sometimes. If this is the first time you see this page then try reloading the app.

If you can reproduce this error, then we would be glad if you - or + or diff --git a/src/components/landing-layout/footer/social-links.tsx b/src/components/landing-layout/footer/social-links.tsx index 18c16864d..c5d863de0 100644 --- a/src/components/landing-layout/footer/social-links.tsx +++ b/src/components/landing-layout/footer/social-links.tsx @@ -10,7 +10,7 @@ const SocialLink: React.FC = () => { , , - , + , , ]}/> diff --git a/src/links.json b/src/links.json index 6addb7313..c751cac6a 100644 --- a/src/links.json +++ b/src/links.json @@ -1,5 +1,5 @@ { - "chatElement": "https://app.element.io/#/room/#hedgedoc:matrix.org", + "chat": "https://matrix.to/#/#hedgedoc:matrix.org", "community": "https://community.codimd.org", "faq": "https://community.codimd.org/t/frequently-asked-questions/190", "githubOrg": "https://github.com/codimd/",