-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
m.room.retention doesn't work on all rooms #8611
Comments
Direct Message rooms in Element are created as encrypted rooms by default, which I imagine is probably the differentiating factor here. Regular events in encrypted rooms are encrypted and obfuscated so the server cannot read them, but state events are not. This allows retention information to be read by the server even in encrypted rooms. Synapse v1.21.2 has a bug in that retention information is accepted from regular events as well as state events. The fix is due to land in the next release cycle: #8527 Is it possible that you've been sending your retention events as regular events rather than a state event? This would mean they would get read and apply in unencrypted rooms (most public rooms), but not apply in DMs (usually encrypted). You can check by looking at |
I notice that the |
It has already worked. Thanks again. |
Description
I set the
m.room.retention
state event on a number of rooms.The retention policy appears to work on traditionally created rooms (i.e. via Element "Add new room"), but rooms created by a direct message accept the state event but old messages do not get purged.
From what I can tell, direct-message rooms have a room ID and properties just like the other rooms, and it accepted the state event, so I expected this to work.
Steps to reproduce
retention: enabled: true
, defaults, and purge jobs). My settings are included at the bottom of thispost.m.room.retention
to setmax_lifetime
on the room.I've done this on other standard rooms, and the results stick and appear the same when viewing the room state after sending. I checked that both the working rooms and the non-working rooms show up as room version 6.
Version information
Homeserver:
locally hosted docker container
Version:
current
master
server_version: "1.21.2"
python_version: "3.7.9"
Install method:
matrixdotorg/synapse
image viadocker-compose build
Platform:
Docker on Ubuntu
The text was updated successfully, but these errors were encountered: