Skip to content

Commit

Permalink
Merge branch 'remove-copy-link-transcript' into 'master'
Browse files Browse the repository at this point in the history
Fix: Remove copy link in audio message

See merge request kchat/webapp!795
  • Loading branch information
antonbuks committed Jun 6, 2024
2 parents 53aa15a + ed896fa commit 649271f
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
PauseIcon,
DotsVerticalIcon,
CloseIcon,
LinkVariantIcon,
DownloadOutlineIcon,
} from '@infomaniak/compass-icons/components';
import React, {useState} from 'react';
Expand All @@ -30,8 +29,6 @@ import LoadingSpinner from 'components/widgets/loading/loading_spinner';

import Constants from 'utils/constants';
import {convertSecondsToMSS} from 'utils/datetime';
import {getSiteURL} from 'utils/url';
import {copyToClipboard} from 'utils/utils';

export interface Props {
postId?: Post['id'];
Expand Down Expand Up @@ -81,10 +78,6 @@ function VoiceMessageAttachmentPlayer(props: Props) {

const transcriptIcon = () => Constants.TRANSCRIPT_ICON;

function copyLink() {
copyToClipboard(`${getSiteURL()}/api/v4/files/${props.fileId}`);
}

function downloadFile() {
window.location.assign(getFileDownloadUrl(props.fileId));
}
Expand Down Expand Up @@ -147,17 +140,6 @@ function VoiceMessageAttachmentPlayer(props: Props) {
/>),
}}
>
<Menu.Item
id={`permalink_${props.postId}`}
leadingElement={<LinkVariantIcon size={18}/>}
labels={(
<FormattedMessage
id='single_image_view.copy_link_tooltip'
defaultMessage='Copy link'
/>
)}
onClick={copyLink}
/>
<Menu.Item
id={`download_${props.postId}`}
leadingElement={(
Expand Down

0 comments on commit 649271f

Please sign in to comment.