mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Standardize on showConversation function, delete unused functions
This commit is contained in:
@@ -44,6 +44,7 @@ import {
|
||||
getLinkPreviewForSend,
|
||||
hasLinkPreviewLoaded,
|
||||
maybeGrabLinkPreview,
|
||||
removeLinkPreview,
|
||||
resetLinkPreview,
|
||||
} from '../../services/LinkPreview';
|
||||
import { getMaximumAttachmentSize } from '../../util/attachments';
|
||||
@@ -789,6 +790,10 @@ function replaceAttachments(
|
||||
return;
|
||||
}
|
||||
|
||||
if (hasDraftAttachments(attachments, { includePending: true })) {
|
||||
removeLinkPreview();
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: REPLACE_ATTACHMENTS,
|
||||
payload: attachments.map(resolveDraftAttachmentOnDisk),
|
||||
|
||||
Reference in New Issue
Block a user