Enable SquirrelMacEnableDirectContentsWrite
This commit is contained in:
parent
5d110964b9
commit
a83a85d557
3 changed files with 35 additions and 32 deletions
|
@ -120,7 +120,7 @@ import type { LoggerType } from '../ts/types/Logging';
|
|||
|
||||
const animationSettings = systemPreferences.getAnimationSettings();
|
||||
|
||||
if (OS.isMacOS() && !isProduction(app.getVersion())) {
|
||||
if (OS.isMacOS()) {
|
||||
systemPreferences.setUserDefault(
|
||||
'SquirrelMacEnableDirectContentsWrite',
|
||||
'boolean',
|
||||
|
|
|
@ -635,29 +635,31 @@ export function CompositionArea({
|
|||
|
||||
return (
|
||||
<div className="CompositionArea">
|
||||
{attachmentToEdit && 'url' in attachmentToEdit && attachmentToEdit.url && (
|
||||
<MediaEditor
|
||||
i18n={i18n}
|
||||
imageSrc={attachmentToEdit.url}
|
||||
imageToBlurHash={imageToBlurHash}
|
||||
isSending={false}
|
||||
onClose={() => setAttachmentToEdit(undefined)}
|
||||
onDone={({ data, contentType, blurHash }) => {
|
||||
const newAttachment = {
|
||||
...attachmentToEdit,
|
||||
contentType,
|
||||
blurHash,
|
||||
data,
|
||||
size: data.byteLength,
|
||||
};
|
||||
{attachmentToEdit &&
|
||||
'url' in attachmentToEdit &&
|
||||
attachmentToEdit.url && (
|
||||
<MediaEditor
|
||||
i18n={i18n}
|
||||
imageSrc={attachmentToEdit.url}
|
||||
imageToBlurHash={imageToBlurHash}
|
||||
isSending={false}
|
||||
onClose={() => setAttachmentToEdit(undefined)}
|
||||
onDone={({ data, contentType, blurHash }) => {
|
||||
const newAttachment = {
|
||||
...attachmentToEdit,
|
||||
contentType,
|
||||
blurHash,
|
||||
data,
|
||||
size: data.byteLength,
|
||||
};
|
||||
|
||||
addAttachment(conversationId, newAttachment);
|
||||
setAttachmentToEdit(undefined);
|
||||
}}
|
||||
installedPacks={installedPacks}
|
||||
recentStickers={recentStickers}
|
||||
/>
|
||||
)}
|
||||
addAttachment(conversationId, newAttachment);
|
||||
setAttachmentToEdit(undefined);
|
||||
}}
|
||||
installedPacks={installedPacks}
|
||||
recentStickers={recentStickers}
|
||||
/>
|
||||
)}
|
||||
<div className="CompositionArea__toggle-large">
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
@ -802,15 +802,16 @@ export function StoryViewer({
|
|||
))}
|
||||
</div>
|
||||
<div className="StoryViewer__actions">
|
||||
{sendStatus === ResolvedSendStatus.Failed && !wasManuallyRetried && (
|
||||
<button
|
||||
className="StoryViewer__actions__failed"
|
||||
onClick={doRetryMessageSend}
|
||||
type="button"
|
||||
>
|
||||
{i18n('StoryViewer__failed')}
|
||||
</button>
|
||||
)}
|
||||
{sendStatus === ResolvedSendStatus.Failed &&
|
||||
!wasManuallyRetried && (
|
||||
<button
|
||||
className="StoryViewer__actions__failed"
|
||||
onClick={doRetryMessageSend}
|
||||
type="button"
|
||||
>
|
||||
{i18n('StoryViewer__failed')}
|
||||
</button>
|
||||
)}
|
||||
{sendStatus === ResolvedSendStatus.PartiallySent &&
|
||||
!wasManuallyRetried && (
|
||||
<button
|
||||
|
|
Loading…
Add table
Reference in a new issue