mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-30 05:10:53 +01:00
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user