From e9bc6ae53b26d679682a9a22bc81d647f1154c25 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 15 Jan 2022 13:31:10 +0100 Subject: [PATCH] chore: Set retention state for story rooms --- .../client_stories_extension.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/utils/matrix_sdk_extensions.dart/client_stories_extension.dart b/lib/utils/matrix_sdk_extensions.dart/client_stories_extension.dart index 49492a64..15eca426 100644 --- a/lib/utils/matrix_sdk_extensions.dart/client_stories_extension.dart +++ b/lib/utils/matrix_sdk_extensions.dart/client_stories_extension.dart @@ -62,6 +62,14 @@ extension ClientStoriesExtension on Client { 'algorithm': 'm.megolm.v1.aes-sha2', }, ), + StateEvent( + type: 'm.room.retention', + stateKey: '', + content: { + 'min_lifetime': 86400000, + 'max_lifetime': 86400000, + }, + ), ], invite: invite, );