Temporarily ignore "terms" restriction reason for chats (#1613)
This commit is contained in:
parent
253d7d8542
commit
2b922bc329
@ -178,7 +178,7 @@ function buildApiChatRestrictionReason(
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const targetReason = restrictionReasons.find(({ platform }) => platform === 'all');
|
const targetReason = restrictionReasons.find(({ platform, reason }) => platform === 'all' && reason !== 'terms');
|
||||||
return targetReason ? pick(targetReason, ['reason', 'text']) : undefined;
|
return targetReason ? pick(targetReason, ['reason', 'text']) : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user