Benutzer-Werkzeuge

Webseiten-Werkzeuge


howto:matrix:max_lifetime

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
howto:matrix:max_lifetime [2021/03/31 12:19]
casper
howto:matrix:max_lifetime [2021/07/17 19:37] (aktuell)
unbuntu add info about already downloaded messgages
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.  
 + 
 +<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> 
 + 
 +Sadly, this setting is currently not exposed in Element. If you want to increase/decrease this time, do as follows:
  
   * Find you personal access token in Element by:   * Find you personal access token in Element by:
Zeile 17: Zeile 21:
 curl -X PUT -d '{"max_lifetime": 7}' --header "Authorization: Bearer $your_access_token" 'https://matrix.systemli.org/_matrix/client/r0/rooms/$your_room_id/state/m.room.retention/'  curl -X PUT -d '{"max_lifetime": 7}' --header "Authorization: Bearer $your_access_token" 'https://matrix.systemli.org/_matrix/client/r0/rooms/$your_room_id/state/m.room.retention/' 
 </code> </code>
 +
 +===== Check if custom retention time is set =====
 +<code>
 +curl --header "Authorization: Bearer $your_access_token" 'https://matrix.systemli.org/_matrix/client/r0/rooms/$your_room_id/state/m.room.retention'       
 +</code>
 +If something custom is configured it should return something like <code>{"max_lifetime":$number_of_miliseconds}</code>
  
 ===== Further reading ===== ===== Further reading =====
howto/matrix/max_lifetime.1617185979.txt.gz · Zuletzt geändert: 2021/03/31 12:19 von casper