[iOS] dont show empty wiki description in place page

https://jira.mail.ru/browse/MAPSME-12570
This commit is contained in:
Aleksey Belouosv 2019-12-05 22:38:28 +03:00 committed by Arsentiy Milchakov
parent f943943d99
commit d1e7c5386b

View file

@ -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:@{