From de4d55e06a468040d89b8da4adc2f7f41e059f49 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 2 Mar 2026 15:21:14 +0400 Subject: [PATCH] Allow sending voices by Ctrl+R in topics. Fixes #30361. --- .../history/view/controls/history_view_compose_controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp index ca3ef00251..7ad40e3ce1 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_compose_controls.cpp @@ -3232,7 +3232,7 @@ void ComposeControls::initVoiceRecordBar() { return Ui::AppInFocus(); }) | rpl::on_next([=](not_null 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);