Add distinct item for Poll in menu.

This commit is contained in:
John Preston 2025-07-02 11:15:48 +04:00
parent 7253d764d2
commit b0971601b1
2 changed files with 2 additions and 1 deletions

View file

@ -5965,6 +5965,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_polls_stop" = "Stop poll";
"lng_polls_stop_warning" = "If you stop this poll now, nobody will be able to vote in it anymore. This action cannot be undone.";
"lng_polls_stop_sure" = "Stop";
"lng_polls_menu_item" = "Poll";
"lng_polls_create" = "Create poll";
"lng_polls_create_title" = "New poll";
"lng_polls_create_question" = "Question";

View file

@ -2607,7 +2607,7 @@ std::unique_ptr<Ui::DropdownMenu> MakeAttachBotsMenu(
}
if (peer->canCreatePolls()) {
++minimal;
raw->addAction(tr::lng_polls_create(tr::now), [=] {
raw->addAction(tr::lng_polls_menu_item(tr::now), [=] {
const auto action = actionFactory();
const auto source = action.options.scheduled
? Api::SendType::Scheduled