From 3dc4c7be4e4da1be610bfba8b28133c7d80ced48 Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Thu, 21 Apr 2022 14:46:06 +0300 Subject: [PATCH] [storage] Fix updates free space regression Signed-off-by: Konstantin Pastbin --- storage/storage_helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/storage_helpers.cpp b/storage/storage_helpers.cpp index 86c3937ecc..c98eb12be2 100644 --- a/storage/storage_helpers.cpp +++ b/storage/storage_helpers.cpp @@ -58,9 +58,9 @@ bool IsEnoughSpaceForUpdate(CountryId const & countryId, Storage const & storage // - Android and Desktop has 1 simultaneous download // - iOS has unlimited simultaneous downloads #ifdef OMIM_OS_IPHONE - return updateInfo.m_totalDownloadSizeInBytes; + return IsEnoughSpaceForDownload(updateInfo.m_totalDownloadSizeInBytes); #else - return diff + updateInfo.m_maxFileSizeInBytes; + return IsEnoughSpaceForDownload(diff + updateInfo.m_maxFileSizeInBytes); #endif }