Username Education

Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
Fedor Indutny
2024-01-29 12:09:54 -08:00
committed by GitHub
parent c6a7637513
commit 7dc11c1928
100 changed files with 1443 additions and 1269 deletions

View File

@@ -1,10 +1,9 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { showToast } from './showToast';
import { ToastGroupLinkCopied } from '../components/ToastGroupLinkCopied';
import { ToastType } from '../types/Toast';
export async function copyGroupLink(groupLink: string): Promise<void> {
await window.navigator.clipboard.writeText(groupLink);
showToast(ToastGroupLinkCopied);
window.reduxActions.toast.showToast({ toastType: ToastType.GroupLinkCopied });
}