From e5d7108f1a9dbb15c41b692a9d9cd10ce13cc1a4 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 29 Mar 2024 11:25:06 +0300 Subject: [PATCH] Log unsupported premium features. --- td/telegram/Premium.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/td/telegram/Premium.cpp b/td/telegram/Premium.cpp index 7aa5dfb46..11213e0fd 100644 --- a/td/telegram/Premium.cpp +++ b/td/telegram/Premium.cpp @@ -108,6 +108,9 @@ static td_api::object_ptr get_premium_feature_object(Sli if (premium_feature == "last_seen") { return td_api::make_object(); } + if (G()->is_test_dc()) { + LOG(ERROR) << "Receive unsupported premium feature " << premium_feature; + } return nullptr; } @@ -145,6 +148,9 @@ static td_api::object_ptr get_business_feature_object(S if (business_feature == "stories") { return td_api::make_object(); } + if (G()->is_test_dc()) { + LOG(ERROR) << "Receive unsupported business feature " << business_feature; + } return nullptr; }