2021-09-22 20:59:54 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-01-29 20:09:54 +00:00
|
|
|
import { ToastType } from '../types/Toast';
|
2021-09-22 20:59:54 +00:00
|
|
|
|
|
|
|
export async function copyGroupLink(groupLink: string): Promise<void> {
|
|
|
|
await window.navigator.clipboard.writeText(groupLink);
|
2024-01-29 20:09:54 +00:00
|
|
|
window.reduxActions.toast.showToast({ toastType: ToastType.GroupLinkCopied });
|
2021-09-22 20:59:54 +00:00
|
|
|
}
|
2024-05-22 16:24:27 +00:00
|
|
|
|
|
|
|
export async function copyCallLink(callLink: string): Promise<void> {
|
|
|
|
await window.navigator.clipboard.writeText(callLink);
|
|
|
|
window.reduxActions.toast.showToast({ toastType: ToastType.CopiedCallLink });
|
|
|
|
}
|