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
en:howto:matrix:max_lifetime [2023/05/13 13:49] 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 ''/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> +  - 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
  
 ---- ----
en/howto/matrix/max_lifetime.txt · Last modified: by y

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki