mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Display occupied chats using drafts for support.
This commit is contained in:
@@ -214,13 +214,13 @@ void MainMenu::refreshMenu() {
|
||||
|
||||
const auto subscription = Ui::AttachAsChild(_menu, rpl::lifetime());
|
||||
_menu->addAction(qsl("Reload templates"), [=] {
|
||||
*subscription = Auth().supportTemplates()->errors(
|
||||
*subscription = Auth().supportTemplates().errors(
|
||||
) | rpl::start_with_next([=](QStringList errors) {
|
||||
Ui::Toast::Show(errors.isEmpty()
|
||||
? "Templates reloaded!"
|
||||
: ("Errors:\n\n" + errors.join("\n\n")));
|
||||
});
|
||||
Auth().supportTemplates()->reload();
|
||||
Auth().supportTemplates().reload();
|
||||
}, &st::mainMenuReload, &st::mainMenuReloadOver);
|
||||
}
|
||||
_menu->addAction(lang(lng_menu_settings), [] {
|
||||
|
Reference in New Issue
Block a user