The Sparkle framework downloads updates multiple times, leading to cache overflow. On mac OS, the Telegram Desktop client does not correctly process updates through the Sparkle framework.
The following happens:
Sparkle downloads update files (for example, Telegram.app.zip and its unpacked version) 2-3 times a day.Each such downloaded and unpacked copy of the update (in a separate subfolder inside Persistent Downloads) takes up 432 MB.Old downloaded update files are not deleted from the ~/Library/Caches/org.sparkle-project.Sparkle/PersistentDownloads/ folder.This leads to the accumulation of duplicates and a significant increase in the folder size (in my case ~40 GB).
Reinstalling Telegram Desktop does not solve the problem.Manually deleting the contents of ~/Library/Caches/org.sparkle-project.Sparkle/PersistentDownloads/ temporarily frees up space, but the problem persists.
Client: Telegram for mac OS (native, Swift version)Client version: 11.12.3.273181 Stable
macOS Version: macOS Ventura 13.6.4
Steps to reproduce
Open Telegram for macOS.
Manually check for updates:
Click on "Telegram" in the top menu bar (next to the Apple logo).Select "Check for Updates..." from the dropdown menu.(The app might report it's up to date, or it might download/offer an update. The issue occurs regardless of whether a new version is actually installed, as it seems to re-download or attempt to process an update repeatedly).
After the update check process completes (whether an update was found/installed or not), navigate to the Sparkle cache folder:
Open Finder.From the top menu bar, click "Go" > "Go to Folder..."Enter the path: ~/Library/Caches/org.sparkle-project.Sparkle/PersistentDownloads/ and click "Go".
Observe the contents of the PersistentDownloads folder:
You will likely see one or more subfolders with seemingly random names (e.g., 0dzCDmtKP) and/or downloaded files like Telegram.app.zip.Note the timestamp and size of any newly created folders/files. Each downloaded update instance appears to be around 432 MB.
Repeat the update check process multiple times over a period (e.g., 2-3 times a day, or simply wait for the app to perform its automatic checks over a day or two):
Either by manually selecting "Check for Updates..." again after a few hours.Or by simply using Telegram normally and allowing its automatic background update checks to occur.
Re-examine the ~/Library/Caches/org.sparkle-project.Sparkle/PersistentDownloads/ folder after several update check cycles.
Device info
Telegram macOS 11.12.3 (273181) STABLE, MacBook Pro M1, 13.6.4
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.