diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp index f1eba0ca21..d3b7496cf1 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -1514,6 +1514,19 @@ bool ResolveConferenceCall( controller->resolveConferenceCall(match->captured(1), myContext.itemId); return true; } + +bool ResolveStarsSettings( + Window::SessionController *controller, + const Match &match, + const QVariant &context) { + if (!controller) { + return false; + } + controller->showSettings(::Settings::CreditsId()); + controller->window().activate(); + return true; +} + } // namespace const std::vector &LocalUrlHandlers() { @@ -1614,6 +1627,10 @@ const std::vector &LocalUrlHandlers() { u"^call/?\\?slug=([a-zA-Z0-9\\.\\_\\-]+)(&|$)"_q, ResolveConferenceCall }, + { + u"^stars/?(^\\?.*)?(#|$)"_q, + ResolveStarsSettings + }, { u"^([^\\?]+)(\\?|#|$)"_q, HandleUnknown