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/05/13 13:28] – Update to describe how devtools are found in current Element doobryen:howto:matrix:max_lifetime [2026/01/05 14:55] (current) – Fix howto y
Line 8: Line 8:
  
 It is possible to send custom events from developer tools of element web and set room retention time there. 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 `/devtoolsin the message editor. <del>(With older versions of Element, it was something like: Right-click a room → Settings → Advanced → Open developer tools → Send custom event)</del> +  - The developer tools can be opened by typing ''/devtools'' in the message editor. 
-  - In the devtools, select "Send custom timeline event" +  - In the devtools, select "Explore room state" 
-  - You'll first need to convert the desired time in days to milliseconds, i.e.: 1000*60*60*24*<number_of_days> +  - If the retention has not previously set, `m.room.retention` will not show up in the overview 
-  - Event Type: <code>m.room.retention</code> +  - Click "Send custom state event"  
-  - Event Content: <code>+    - 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     "max_lifetime": 2592000000
 }</code> }</code>
-  - Click "Send"+    - State Key: leave this empty 
 +    - Click "Send"
  
-After sending, you can verify that the retention is set: Go backchoose "Explore room state" and ''m.room.retention'' there.+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
  
 ---- ----
Line 26: 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.1683977289.txt.gz · Last modified: by doobry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki