Use rvlt.gg instead of app.revolt.chat/invite for invites (#783)

This commit is contained in:
Compey 2022-09-20 22:55:14 +05:30 committed by GitHub
parent b64c316dc9
commit b649b2a923
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ import { noopAsync } from "../../../lib/js";
import { takeError } from "../../client/jsx/error";
import { modalController } from "../ModalController";
import { ModalProps } from "../types";
import { IS_REVOLT } from "../../../version";
/**
* Code block which displays invite
@ -78,7 +79,7 @@ export default function CreateInvite({
children: <Text id="app.context_menu.copy_link" />,
onClick: () =>
modalController.writeText(
`${window.location.protocol}//${window.location.host}/invite/${code}`,
IS_REVOLT ? `https://rvlt.gg/${code}` : `${window.location.host}/invite/${code}`
),
},
]}