mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Slightly improved condition for handler of record voice shortcut.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user