Revert "Temporarily ignore "terms" restriction reason for chats (#1613)"

This reverts commit 2b922bc3293b44fd630e415b40ad7b84c9b66c13.
This commit is contained in:
Alexander Zinchuk 2021-12-31 12:44:42 +01:00
parent b4119d1d00
commit a28c33ced7

View File

@ -178,7 +178,7 @@ function buildApiChatRestrictionReason(
return undefined;
}
const targetReason = restrictionReasons.find(({ platform, reason }) => platform === 'all' && reason !== 'terms');
const targetReason = restrictionReasons.find(({ platform }) => platform === 'all');
return targetReason ? pick(targetReason, ['reason', 'text']) : undefined;
}