mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Fix tg://settings/devices link.
This commit is contained in:
@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
*/
|
*/
|
||||||
#include "core/local_url_handlers.h"
|
#include "core/local_url_handlers.h"
|
||||||
|
|
||||||
|
#include "api/api_authorizations.h"
|
||||||
#include "api/api_text_entities.h"
|
#include "api/api_text_entities.h"
|
||||||
#include "api/api_chat_invite.h"
|
#include "api/api_chat_invite.h"
|
||||||
#include "base/qthelp_regex.h"
|
#include "base/qthelp_regex.h"
|
||||||
@@ -360,6 +361,7 @@ bool ResolveSettings(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (section == qstr("devices")) {
|
if (section == qstr("devices")) {
|
||||||
|
controller->session().api().authorizations().reload();
|
||||||
Ui::show(Box<SessionsBox>(&controller->session()));
|
Ui::show(Box<SessionsBox>(&controller->session()));
|
||||||
return true;
|
return true;
|
||||||
} else if (section == qstr("language")) {
|
} else if (section == qstr("language")) {
|
||||||
|
@@ -658,6 +658,7 @@ void SetupSessionsList(
|
|||||||
) | rpl::start_with_next([=] {
|
) | rpl::start_with_next([=] {
|
||||||
controller->session().api().authorizations().reload();
|
controller->session().api().authorizations().reload();
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
|
|
||||||
auto count = controller->session().api().authorizations().totalChanges(
|
auto count = controller->session().api().authorizations().totalChanges(
|
||||||
) | rpl::map([](int count) {
|
) | rpl::map([](int count) {
|
||||||
return count ? QString::number(count) : QString();
|
return count ? QString::number(count) : QString();
|
||||||
|
Reference in New Issue
Block a user