2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Added code to show username revoke box

This commit is contained in:
RadRussianRus
2020-07-30 11:28:36 +03:00
parent fae9b40555
commit a41f6540f1

View File

@@ -16,6 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_account.h"
#include "main/main_domain.h"
#include "boxes/confirm_box.h"
#include "boxes/add_contact_box.h"
#include "lang/lang_cloud_manager.h"
#include "lang/lang_instance.h"
#include "core/application.h"
@@ -185,6 +186,13 @@ auto GenerateCodes() {
Core::App().saveSettingsDelayed();
Ui::show(Box<InformBox>("All sound overrides were reset."));
});
codes.emplace(qsl("usernames"), [](SessionController *window) {
Ui::show(
Box<RevokePublicLinkBox>(
&window->session(),
std::move(Fn<void()>())),
Ui::LayerOption::KeepOther);
});
return codes;
}