From 0960a3b21dcd20c7fefb927f50240a6f41594c11 Mon Sep 17 00:00:00 2001 From: c0re100 Date: Thu, 12 Sep 2024 04:55:30 +0800 Subject: [PATCH] Fix restrict user in recent actions --- .../SourceFiles/history/admin_log/history_admin_log_inner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(),