From d1e7c5386b551c9a42fb0e9f1dd671a24615ae7e Mon Sep 17 00:00:00 2001 From: Aleksey Belouosv Date: Thu, 5 Dec 2019 22:38:28 +0300 Subject: [PATCH] [iOS] dont show empty wiki description in place page https://jira.mail.ru/browse/MAPSME-12570 --- iphone/Maps/UI/PlacePage/MWMPlacePageData.mm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm b/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm index 6b98463860..5a76b3b873 100644 --- a/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm +++ b/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm @@ -913,9 +913,11 @@ NSString * const kUserDefaultsLatLonAsDMSKey = @"UserDefaultsLatLonAsDMS"; auto const row = canUseNetwork.CanUse() ? PromoCatalogRow::GuidesRequestError : PromoCatalogRow::GuidesNoInternetError; if (!api) { m_promoCatalogRows.push_back(row); - m_sections.insert(m_sections.begin() + 1, Sections::Description); - if (self.refreshPromoCallback) { - self.refreshPromoCallback([NSIndexSet indexSetWithIndex:1]); + if ([[self placeDescription] length] && ![[self bookmarkDescription] length]) { + m_sections.insert(m_sections.begin() + 1, Sections::Description); + if (self.refreshPromoCallback) { + self.refreshPromoCallback([NSIndexSet indexSetWithIndex:1]); + } } [Statistics logEvent:kStatPlacepageSponsoredError withParameters:@{