mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fix tg://settings/devices link.
This commit is contained in:
parent
4f8989fad7
commit
ef61443342
2 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue