Add global setting for sent media quality

This commit is contained in:
Josh Perez 2022-12-02 18:54:37 -05:00 committed by GitHub
parent ee85a97839
commit 1109415dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 81 additions and 10 deletions

View file

@ -93,7 +93,10 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
// MediaEditor
imageToBlurHash,
// MediaQualitySelector
shouldSendHighQualityAttachments,
shouldSendHighQualityAttachments:
shouldSendHighQualityAttachments !== undefined
? shouldSendHighQualityAttachments
: window.storage.get('sent-media-quality') === 'high',
// StagedLinkPreview
linkPreviewLoading,
linkPreviewResult,