mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Update menu_send.cpp
Unification of Send menu (https://bugs.telegram.org/c/55220)
This commit is contained in:
committed by
John Preston
parent
d9ddb12500
commit
a08f8d890d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user