Allow sending voices by Ctrl+R in topics.

Fixes #30361.
This commit is contained in:
John Preston
2026-03-02 15:21:14 +04:00
parent 221d79283d
commit de4d55e06a
@@ -3232,7 +3232,7 @@ void ComposeControls::initVoiceRecordBar() {
return Ui::AppInFocus();
}) | rpl::on_next([=](not_null<Shortcuts::Request*> request) {
using Command = Shortcuts::Command;
if (Data::CanSendAnything(_history->peer)) {
if (Data::CanSendAnything(_history->peer, !_topicRootId)) {
const auto isVoice = request->check(Command::RecordVoice, 1);
const auto isRound = !isVoice
&& request->check(Command::RecordRound, 1);