diff --git a/Casks/t/telegram.rb b/Casks/t/telegram.rb index 03707a9d3e9c3..feda7bf00e194 100644 --- a/Casks/t/telegram.rb +++ b/Casks/t/telegram.rb @@ -7,9 +7,13 @@ desc "Messaging app with a focus on speed and security" homepage "https://macos.telegram.org/" + # The sparkle feed uses incorrect pubDate values, so it's necessary to + # work with all of the items in the feed (not just the newest one). livecheck do url "https://osx.telegram.org/updates/versions.xml" - strategy :sparkle + strategy :sparkle do |items| + items.map(&:nice_version) + end end auto_updates true