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
Last revisionBoth sides next revision
en:howto:matrix:max_lifetime [2023/04/20 23:16] doobryen:howto:matrix:max_lifetime [2023/05/13 13:32] – [Further reading] doobry
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. <del>(With older versions of Element, it was something like: Right-click a room → Settings → Advanced → Open developer tools → Send custom event)</del> 
 +  - In the devtools, select "Send custom timeline 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> 
 +  - 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 backchoose "Explore room stateand ''m.room.retention'' there.
- +
-  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 26:
 ===== 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.txt · Last modified: 2023/05/13 13:49 by doobry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki