Permit application-specific data in size policy.
This commit is contained in:
parent
7fad57c4a2
commit
b0a253500d
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user