Update menu_send.cpp

Unification of Send menu (https://bugs.telegram.org/c/55220)
This commit is contained in:
InternalProgramError
2025-10-17 17:55:10 +03:00
committed by John Preston
parent d9ddb12500
commit a08f8d890d
+5 -5
View File
@@ -738,11 +738,6 @@ FillMenuResult FillSendMenu(
? *iconsOverride
: st::defaultComposeIcons;
if (sending && type != Type::Reminder) {
menu->addAction(
tr::lng_send_silent_message(tr::now),
[=] { action({ Api::SendOptions{ .silent = true } }, details); },
&icons.menuMute);
}
if (sending && type != Type::SilentOnly) {
menu->addAction(
@@ -760,6 +755,11 @@ FillMenuResult FillSendMenu(
details); },
&icons.menuWhenOnline);
}
if (sending && type != Type::Reminder) {
menu->addAction(
tr::lng_send_silent_message(tr::now),
[=] { action({ Api::SendOptions{ .silent = true } }, details); },
&icons.menuMute);
if ((type != Type::Disabled)
&& ((details.spoiler != SpoilerState::None)