User Tools

Site Tools


en:howto:matrix:max_lifetime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:howto:matrix:max_lifetime [2023/04/20 23:16] doobryen:howto:matrix:max_lifetime [2026/01/05 14:55] (current) – Fix howto y
Line 7: Line 7:
 ---- ----
  
-It is possible to send custom events from developer tools of element web and set room retention time there. Something like: Right-click a room → Settings → Advanced → Open developer tools → Send custom event+It is possible to send custom events from developer tools of element web and set room retention time there. 
 +  The developer tools can be opened by typing ''/devtools'' in the message editor. 
 +  - In the devtools, select "Explore room state" 
 +  - If the retention has not previously set, `m.room.retention` will not show up in the overview 
 +  - Click "Send custom state event"  
 +    - You'll first need to convert the desired time in days to milliseconds, i.e.: 1000*60*60*24*<number_of_days> 
 +    - Event Type: <code>m.room.retention</code> 
 +    - Event Content: <code> 
 +
 +    "max_lifetime": 2592000000 
 +}</code> 
 +    - State Key: leave this empty 
 +    - Click "Send"
  
-You'll first need to convert the desired time in days to milliseconds, i.e.: 1000*60*60*24*<number_of_days> +After sending, you can verify that the retention is set: Go back and choose "Explore room state". Now ''m.room.retention'' should show up in the overview
- +
-  type:    m.room.retention +
-  content: { "max_lifetime": 259200000 } +
- +
-Click the red "Event"-button and then send. +
- +
-After sending, you can verify that the retention is set: Go back and choose room state and m.room.retention there.+
  
 ---- ----
Line 24: Line 29:
 ===== Further reading ===== ===== Further reading =====
  
-  * [[https://github.com/matrix-org/synapse/blob/develop/docs/message_retention_policies.md|Matrix Message retention policies]] +  * [[https://github.com/matrix-org/synapse/blob/develop/docs/message_retention_policies.md#room-configuration|Matrix Message retention policies]] 
-  * [[https://matrix.org/docs/spec/r0.0.0/client_server|Matrix Client API documentation]]+  * [[https://spec.matrix.org/latest/|Matrix Client API documentation]]
en/howto/matrix/max_lifetime.1682025368.txt.gz · Last modified: by doobry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki