diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp index 1194feb100..1edf0d1580 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_inner.cpp @@ -1572,7 +1572,8 @@ void InnerWidget::suggestRestrictParticipant( if (participant.type() == Type::Creator || participant.type() == Type::Admin) { editRestrictions(true, {}, nullptr, 0); - } else if (const auto since = participant.restrictedSince()) { + } else { + const auto since = participant.restrictedSince(); editRestrictions( false, participant.restrictions(),