Standardize on showConversation function, delete unused functions

This commit is contained in:
Scott Nonnenberg
2022-12-14 11:05:32 -08:00
committed by GitHub
parent 1dc3ed914f
commit f2f1c3c021
35 changed files with 174 additions and 198 deletions

View File

@@ -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),