Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
howto:matrix:max_lifetime [2021/03/31 12:19] casperhowto:matrix:max_lifetime [2022/02/26 15:42] (aktuell) – add hint: conversion to milliseconds yadda
Zeile 1: Zeile 1:
 ====== Change Matrix room retention time ====== ====== Change Matrix room retention time ======
-Systemli's Matrix home server instance has a default retention time of 30 days. We allow values from 1-180 days. Sadly, this setting is currently not exposed in Element. If you want to increase/decrease this time, do as follows:+Systemli's Matrix home server instance has a default retention time of 30 days. We allow values from 1-180 days. 
-  * Find you personal access token in Element by: +<note important>Clients that have already downloaded and stored the event/message might continue to show it, unless they themselves implement support for message retention policies, the homeserver can not do anything about this.</note
-    * Click on your username in the upper left corner + 
-    * All settings > Help & About > Advanced +---- 
-    * Access Token: <click to reveal+ 
-  * Find room id in Element by: +It is possible to send custom events from developer tools of element web and set room retention time thereSomething likeRight-click a room → Settings → Advanced → Open developer tools → Send custom event 
-    * Click on room info (i) in the upper right corner + 
-    * Room settings > Advanced > Room information +You'll first need to convert the desired time in days to millisecondsi.e.: 1000*60*60*24*<number_of_days
-    * Internal room ID: + 
-  * The APi only accept a time in milisecondsso calulate a new time: +  type: 
-    * 1000*60*60*24*$number_of_days +  content: { "max_lifetime": 34560000002 } 
-  * Use curl to put another lifetime + 
-<code> +Click the red "Event"-button and then send. 
-curl -X PUT -d '{"max_lifetime": 7}--header "AuthorizationBearer $your_access_token" '$your_room_id/state/'  + 
-</code>+After sending, you can verify that the retention is set: Go back and choose room state and there. 
 ===== Further reading ===== ===== Further reading =====
howto/matrix/max_lifetime.1617185979.txt.gz · Zuletzt geändert: 2021/03/31 12:19 von casper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki