Revert "Temporarily ignore "terms" restriction reason for chats (#1613)"
This reverts commit 2b922bc3293b44fd630e415b40ad7b84c9b66c13.
This commit is contained in:
parent
b4119d1d00
commit
a28c33ced7
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user