Fix restrict user in recent actions

This commit is contained in:
c0re100 2024-09-12 04:55:30 +08:00 committed by 23rd
parent aec220fd2c
commit 0960a3b21d
1 changed files with 2 additions and 1 deletions

View File

@ -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(),