mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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 "api/api_authorizations.h"
|
||||
#include "api/api_text_entities.h"
|
||||
#include "api/api_chat_invite.h"
|
||||
#include "base/qthelp_regex.h"
|
||||
@@ -360,6 +361,7 @@ bool ResolveSettings(
|
||||
return true;
|
||||
}
|
||||
if (section == qstr("devices")) {
|
||||
controller->session().api().authorizations().reload();
|
||||
Ui::show(Box<SessionsBox>(&controller->session()));
|
||||
return true;
|
||||
} else if (section == qstr("language")) {
|
||||
|
||||
@@ -658,6 +658,7 @@ void SetupSessionsList(
|
||||
) | rpl::start_with_next([=] {
|
||||
controller->session().api().authorizations().reload();
|
||||
}, container->lifetime());
|
||||
|
||||
auto count = controller->session().api().authorizations().totalChanges(
|
||||
) | rpl::map([](int count) {
|
||||
return count ? QString::number(count) : QString();
|
||||
|
||||
Reference in New Issue
Block a user