Add ephemeral messages support (MSC2228) (#6409)
Implement part [MSC2228](https://github.com/matrix-org/matrix-doc/pull/2228). The parts that differ are: * the feature is hidden behind a configuration flag (`enable_ephemeral_messages`) * self-destruction doesn't happen for state events * only implement support for the `m.self_destruct_after` field (not the `m.self_destruct` one) * doesn't send synthetic redactions to clients because for this specific case we consider the clients to be able to destroy an event themselves, instead we just censor it (by pruning its JSON) in the database
Showing
- changelog.d/6409.feature 1 addition, 0 deletionschangelog.d/6409.feature
- synapse/api/constants.py 4 additions, 0 deletionssynapse/api/constants.py
- synapse/config/server.py 2 additions, 0 deletionssynapse/config/server.py
- synapse/handlers/federation.py 8 additions, 0 deletionssynapse/handlers/federation.py
- synapse/handlers/message.py 122 additions, 1 deletionsynapse/handlers/message.py
- synapse/storage/data_stores/main/events.py 120 additions, 6 deletionssynapse/storage/data_stores/main/events.py
- synapse/storage/data_stores/main/schema/delta/56/event_expiry.sql 21 additions, 0 deletions...storage/data_stores/main/schema/delta/56/event_expiry.sql
- tests/rest/client/test_ephemeral_message.py 101 additions, 0 deletionstests/rest/client/test_ephemeral_message.py
Loading
Please register or sign in to comment