mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Rename files
This commit is contained in:
14
ts/util/copyLinksWithToast.dom.ts
Normal file
14
ts/util/copyLinksWithToast.dom.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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 });
|
||||
}
|
||||
Reference in New Issue
Block a user