signal-desktop/ts/util/copyGroupLink.ts
Fedor Indutny 7dc11c1928
Username Education
Co-authored-by: Jamie Kyle <jamie@signal.org>
2024-01-29 12:09:54 -08:00

9 lines
340 B
TypeScript

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