A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
// SPDX-License-Identifier: AGPL-3.0-or-later
import {Config} from '@app/api/Config';
export interface ContactEmails {
appealsEmail: string | null;
privacyEmail: string | null;
safetyEmail: string | null;
supportEmail: string | null;
}
const HOSTED_CONTACT_EMAILS: ContactEmails = {
appealsEmail: '[email protected]',
privacyEmail: '[email protected]',
safetyEmail: '[email protected]',
supportEmail: '[email protected]',
};
const SELF_HOSTED_CONTACT_EMAILS: ContactEmails = {
appealsEmail: null,
privacyEmail: null,
safetyEmail: null,
supportEmail: null,
};
const HOSTED_LEGAL_ADDRESS =
'Fluxer Platform AB (org. no. 559537-3993, registered office Haninge, Sweden), c/o Embassy House, Östgötagatan 12, 116 25 Stockholm, Sweden';
export function resolveLegalAddress(): string | null {
return Config.instance.selfHosted ? null : HOSTED_LEGAL_ADDRESS;
}
export function resolveContactEmails(): ContactEmails {
return Config.instance.selfHosted ? SELF_HOSTED_CONTACT_EMAILS : HOSTED_CONTACT_EMAILS;
}