From 8bc8feae4696a8b08012bb34288200ccdc21ea75 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 20 Feb 2024 09:42:27 +0200 Subject: [PATCH] matrix/account-data/im.nheko.event_expiry: more examples --- .../im.nheko.event_expiry/README.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/matrix/account-data/im.nheko.event_expiry/README.md b/matrix/account-data/im.nheko.event_expiry/README.md index 262747a..40206df 100644 --- a/matrix/account-data/im.nheko.event_expiry/README.md +++ b/matrix/account-data/im.nheko.event_expiry/README.md @@ -5,7 +5,9 @@ +- [Disable](#disable) - [28 days](#28-days) + - [Example with keep only x messages & always keep](#example-with-keep-only-x-messages--always-keep) - [31 days](#31-days) - [365 days](#365-days) @@ -13,6 +15,18 @@ +## Disable + +- Expire events after 0 days +- Only keep latest 0 events +- Always keep latest 0 events + +```json +{ + "exclude_state_events": true +} +``` + ## 28 days _Also known as 4 weeks._ @@ -24,6 +38,21 @@ _Also known as 4 weeks._ } ``` +### Example with keep only x messages & always keep + +- Expire events after 28 days +- Only keep latest 5 events +- Always keep latest 1 events + +```json +{ + "exclude_state_events": true, + "expire_after_ms": 2419200000, + "keep_only_latest": 5, + "protect_latest": 1 +} +``` + ## 31 days ```json