mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Disabled message editing while voice recording.
This commit is contained in:
parent
8da33113a2
commit
3940d57c3d
2 changed files with 2 additions and 2 deletions
|
@ -5652,7 +5652,7 @@ void HistoryWidget::editMessage(FullMsgId itemId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::editMessage(not_null<HistoryItem*> item) {
|
void HistoryWidget::editMessage(not_null<HistoryItem*> item) {
|
||||||
if (_voiceRecordBar->isListenState()) {
|
if (_voiceRecordBar->isActive()) {
|
||||||
Ui::show(Box<InformBox>(tr::lng_edit_caption_voice(tr::now)));
|
Ui::show(Box<InformBox>(tr::lng_edit_caption_voice(tr::now)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1814,7 +1814,7 @@ void ComposeControls::editMessage(not_null<HistoryItem*> item) {
|
||||||
Expects(_history != nullptr);
|
Expects(_history != nullptr);
|
||||||
Expects(draftKeyCurrent() != Data::DraftKey::None());
|
Expects(draftKeyCurrent() != Data::DraftKey::None());
|
||||||
|
|
||||||
if (_voiceRecordBar && _voiceRecordBar->isListenState()) {
|
if (_voiceRecordBar->isActive()) {
|
||||||
Ui::show(Box<InformBox>(tr::lng_edit_caption_voice(tr::now)));
|
Ui::show(Box<InformBox>(tr::lng_edit_caption_voice(tr::now)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue