feat: support send without sound in ghost mode

This commit is contained in:
AlexeyZavar
2026-04-25 05:04:50 +03:00
parent cc56552cb0
commit 44ffd2aea1
6 changed files with 76 additions and 43 deletions
+1 -1
View File
@@ -749,7 +749,7 @@ FillMenuResult FillSendMenu(
const auto &ghost = maybeShow
? AyuSettings::ghost(&maybeShow->session())
: AyuSettings::ghost();
const auto sendWithoutSound = ghost.sendWithoutSound();
const auto sendWithoutSound = ghost.shouldSendWithoutSound();
menu->addAction(
sendWithoutSound ? tr::ayu_SendWithSound(tr::now) : tr::lng_send_silent_message(tr::now),
[=] { action({ Api::SendOptions{ .silent = true } }, details); },