mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Revert "Fixed draft applying while recording voice message in HistoryWidget."
This reverts commit 346547c23d
.
Fixes #9871.
This commit is contained in:
@@ -821,13 +821,6 @@ void HistoryWidget::initVoiceRecordBar() {
|
|||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_voiceRecordBar->hideFast();
|
_voiceRecordBar->hideFast();
|
||||||
|
|
||||||
_voiceRecordBar->shownValue(
|
|
||||||
) | rpl::start_with_next([=](bool shown) {
|
|
||||||
if (!shown) {
|
|
||||||
applyDraft();
|
|
||||||
}
|
|
||||||
}, lifetime());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::initTabbedSelector() {
|
void HistoryWidget::initTabbedSelector() {
|
||||||
@@ -2089,15 +2082,8 @@ bool HistoryWidget::contentOverlapped(const QRect &globalRect) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryWidget::canWriteMessage() const {
|
bool HistoryWidget::canWriteMessage() const {
|
||||||
if (!_history || !_canSendMessages) {
|
if (!_history || !_canSendMessages) return false;
|
||||||
return false;
|
if (isBlocked() || isJoinChannel() || isMuteUnmute() || isBotStart()) return false;
|
||||||
}
|
|
||||||
if (isBlocked() || isJoinChannel() || isMuteUnmute() || isBotStart()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!_voiceRecordBar->isHidden()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user