Added code to show username revoke box
This commit is contained in:
parent
fae9b40555
commit
a41f6540f1
1 changed files with 8 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "main/main_account.h"
|
#include "main/main_account.h"
|
||||||
#include "main/main_domain.h"
|
#include "main/main_domain.h"
|
||||||
#include "boxes/confirm_box.h"
|
#include "boxes/confirm_box.h"
|
||||||
|
#include "boxes/add_contact_box.h"
|
||||||
#include "lang/lang_cloud_manager.h"
|
#include "lang/lang_cloud_manager.h"
|
||||||
#include "lang/lang_instance.h"
|
#include "lang/lang_instance.h"
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
|
|
@ -185,6 +186,13 @@ auto GenerateCodes() {
|
||||||
Core::App().saveSettingsDelayed();
|
Core::App().saveSettingsDelayed();
|
||||||
Ui::show(Box<InformBox>("All sound overrides were reset."));
|
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;
|
return codes;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue