Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Hold back WhatsApp's chats when it is uninstalled
Țugui Dragoș89d31b82eeb7
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swiftindex 61ebe779..1cd156a7 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/KeptOnlyHere.swift@@ -25,6 +25,9 @@ enum KeptOnlyHere {("Library/Application Support/ThreemaDesktop", nil, .holdsMessageHistory),// TelegramSwift's `ApiEnvironment.group`; Telegram's FAQ: secret chats are device-specific.("Library/Group Containers/6N38VWS5BX.ru.keepcoder.Telegram", nil, .holdsMessageHistory),+ // WhatsApp's "How to restore your chat history": chats on WhatsApp on Mac can't be backed up or restored+ // there, and aren't on its servers. The app's entitlements name this group, where it keeps them.+ ("Library/Group Containers/group.net.whatsapp.WhatsApp.shared", nil, .holdsMessageHistory),// Strongbox's "Where are Strongbox local backups stored on my Mac".("Library/Group Containers/group.strongbox.mac.mcguill", "backups", .holdsPasswordsOrCodes),// Ente's "Offline mode": the codes are stored only on that device.diff --git a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swiftindex 1d7db345..de748316 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/KeptOnlyHereTests.swift@@ -13,6 +13,8 @@ struct KeptOnlyHereTests {("Library/Application Support/Signal/sql/db.sqlite", .holdsMessageHistory),("Library/Application Support/riot", .holdsMessageHistory),("Library/Group Containers/6N38VWS5BX.ru.keepcoder.Telegram", .holdsMessageHistory),+ ("Library/Group Containers/group.net.whatsapp.WhatsApp.shared", .holdsMessageHistory),+ ("Library/Group Containers/group.net.whatsapp.WhatsApp.shared/ChatStorage.sqlite", .holdsMessageHistory),("Library/Group Containers/group.strongbox.mac.mcguill", .holdsPasswordsOrCodes),("Library/Containers/io.ente.auth.mac", .holdsPasswordsOrCodes),("Library/Application Support/Tunnelblick/Configurations/work.tblk", .holdsVPNConnections),@@ -29,6 +31,7 @@ struct KeptOnlyHereTests {"Library/Application Support/Signal Beta", "Library/Thunderbird/Crash Reports","Library/Group Containers/group.strongbox.mac.mcguill/Library/Caches","Library/Application Support/Tunnelblick/Logs", "Library/Logs/Viscosity",+ "Library/Group Containers/group.net.whatsapp.family",]for path in free {#expect(KeptOnlyHere.reason(for: "\(home)/\(path)", home: home) == nil, "\(path)")