Permit application-specific data in size policy.

This commit is contained in:
Brian Lee 2024-01-08 07:39:31 -08:00
parent 7fad57c4a2
commit b0a253500d

View File

@ -21,7 +21,7 @@ interface SizeLimitOptions {
*/ */
const sizeLimitPolicy: Policy<SizeLimitOptions> = ({ event: { id, content, kind } }, opts = {}) => { const sizeLimitPolicy: Policy<SizeLimitOptions> = ({ event: { id, content, kind } }, opts = {}) => {
const { const {
excludeKinds = [3], // Exclude large events such as contact lists excludeKinds = [3, 30078], // Exclude large events such as contact lists and app data
maxContentSize = 12 * 1024 // Default size limit is 12KB maxContentSize = 12 * 1024 // Default size limit is 12KB
} = opts; } = opts;