mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Only run ensureFilePermissions() once as a migration
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
@@ -897,6 +897,10 @@ export async function startApp(): Promise<void> {
|
||||
);
|
||||
}
|
||||
|
||||
if (window.isBeforeVersion(lastVersion, 'v1.32.0-beta.4')) {
|
||||
drop(DataWriter.ensureFilePermissions());
|
||||
}
|
||||
|
||||
if (
|
||||
window.isBeforeVersion(lastVersion, 'v1.36.0-beta.1') &&
|
||||
window.isAfterVersion(lastVersion, 'v1.35.0-beta.1')
|
||||
@@ -964,8 +968,6 @@ export async function startApp(): Promise<void> {
|
||||
if (newVersion || window.storage.get('needOrphanedAttachmentCheck')) {
|
||||
await window.storage.remove('needOrphanedAttachmentCheck');
|
||||
await DataWriter.cleanupOrphanedAttachments();
|
||||
|
||||
drop(DataWriter.ensureFilePermissions());
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user