mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed cancel reply with Esc in general monoforum section.
This commit is contained in:
@@ -399,6 +399,13 @@ HistoryWidget::HistoryWidget(
|
||||
}, _field->lifetime());
|
||||
_field->cancelled(
|
||||
) | rpl::on_next([=] {
|
||||
if (_peer->amMonoforumAdmin()) {
|
||||
QWidget::setEnabled(false);
|
||||
crl::on_main([=] {
|
||||
QWidget::setEnabled(true);
|
||||
QWidget::setFocus();
|
||||
});
|
||||
}
|
||||
escape();
|
||||
}, _field->lifetime());
|
||||
_field->tabbed(
|
||||
|
||||
Reference in New Issue
Block a user