mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +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 "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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue