From 9ca4f0975a739b100e81b1903a279c3977f4df14 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 18 Jun 2019 15:45:09 +0200 Subject: [PATCH] Use 'ms' restriction tag for Windows Store build. --- Telegram/SourceFiles/data/data_session.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/data/data_session.cpp b/Telegram/SourceFiles/data/data_session.cpp index 67952a052..7a0fbab58 100644 --- a/Telegram/SourceFiles/data/data_session.cpp +++ b/Telegram/SourceFiles/data/data_session.cpp @@ -101,12 +101,15 @@ QString ExtractUnavailableReason(const QString &restriction) { // {full} is in "{type}-{tag}-{tag}-{tag}" format // if we find "all" tag we return the restriction string const auto typeTags = restriction.mid(0, fullEnd).split('-').mid(1); -#ifndef OS_MAC_STORE - const auto restrictionApplies = typeTags.contains(qsl("all")); -#else // OS_MAC_STORE +#ifdef OS_MAC_STORE const auto restrictionApplies = typeTags.contains(qsl("all")) || typeTags.contains(qsl("ios")); -#endif // OS_MAC_STORE +#elif defined OS_WIN_STORE // OS_MAC_STORE + const auto restrictionApplies = typeTags.contains(qsl("all")) + || typeTags.contains(qsl("ms")); +#else + const auto restrictionApplies = typeTags.contains(qsl("all")); +#endif // OS_MAC_STORE || OS_WIN_STORE if (restrictionApplies) { return restriction.midRef(fullEnd + 1).trimmed().toString(); }