Skip to content

Commit de7193f

Browse files
committed
Fix crash on Escape in composer without a chat.
1 parent 762ef15 commit de7193f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Telegram/SourceFiles/history/history_widget.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ HistoryWidget::HistoryWidget(
465465
}, _field->lifetime());
466466
_field->cancelled(
467467
) | rpl::on_next([=] {
468-
if (_peer->amMonoforumAdmin()) {
468+
if (_peer && _peer->amMonoforumAdmin()) {
469469
QWidget::setEnabled(false);
470470
crl::on_main([=] {
471471
QWidget::setEnabled(true);

0 commit comments

Comments
 (0)