Files
Desktop/ts/util/copyLinksWithToast.dom.ts
Fedor Indutny 44076ece79 Rename files
2025-10-16 23:45:44 -07:00

15 lines
556 B
TypeScript

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