Init CallLinkDetails view in calls tab
This commit is contained in:
parent
e9b661873b
commit
19083cadf7
35 changed files with 665 additions and 222 deletions
14
ts/util/copyLinksWithToast.ts
Normal file
14
ts/util/copyLinksWithToast.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
// 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 });
|
||||
}
|
||||
|
||||
export async function copyCallLink(callLink: string): Promise<void> {
|
||||
await window.navigator.clipboard.writeText(callLink);
|
||||
window.reduxActions.toast.showToast({ toastType: ToastType.CopiedCallLink });
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue