From ef8ecc546be2470dda717f9d55ea8a9e2902bf2a Mon Sep 17 00:00:00 2001 From: CrisMystik <62919067+CrisMystik@users.noreply.github.com> Date: Mon, 25 Apr 2022 22:02:54 +0200 Subject: [PATCH] Use `::Settings::Main::Id()` as fallback --- Telegram/SourceFiles/core/local_url_handlers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp index b1e2a91a85..a8356f3fe2 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -453,6 +453,7 @@ bool ResolveSettings( return ::Settings::Main::Id(); } else if (section == qstr("language")) { ShowLanguagesBox(); + return {}; } else if (section == qstr("devices")) { controller->session().api().authorizations().reload(); return ::Settings::Sessions::Id(); @@ -465,7 +466,7 @@ bool ResolveSettings( } else if (section == qstr("change_number")) { return ::Settings::ChangePhone::Id(); } - return {}; + return ::Settings::Main::Id(); }(); if (type.has_value()) {