Slightly improved condition for handler of record voice shortcut.

This commit is contained in:
23rd
2025-11-15 02:09:22 +03:00
parent 3cd213b9bf
commit b33cdc581b
@@ -2135,7 +2135,10 @@ void HistoryWidget::setupShortcuts() {
std::make_shared<Scheduled>(_history));
return true;
});
if (showRecordButton() && _canSendMessages) {
if (showRecordButton()
&& _canSendMessages
&& _joinChannel->isHidden()
&& !_composeSearch) {
const auto isVoice = request->check(Command::RecordVoice, 1);
const auto isRound = !isVoice
&& request->check(Command::RecordRound, 1);