diff --git a/src/utils/HostingLink.js b/src/utils/HostingLink.js index 7efd8b6f96..ff1ac3d063 100644 --- a/src/utils/HostingLink.js +++ b/src/utils/HostingLink.js @@ -18,12 +18,15 @@ import url from 'url'; import qs from 'qs'; import SdkConfig from '../SdkConfig'; +import MatrixClientPeg from '../MatrixClientPeg'; export function getHostingLink(campaign) { const hostingLink = SdkConfig.get().hosting_signup_link; if (!hostingLink) return null; if (!campaign) return hostingLink; + if (MatrixClientPeg.get().getDomain() !== 'matrix.org') return null; + try { const hostingUrl = url.parse(hostingLink); const params = qs.parse(hostingUrl.query);