-
- Downloads
Make 'event.redacts' never raise. (#6771)
There are quite a few places that we assume that a redaction event has a corresponding `redacts` key, which is not always the case. So lets cheekily make it so that event.redacts just returns None instead.
Showing
- changelog.d/6771.bugfix 1 addition, 0 deletionschangelog.d/6771.bugfix
- synapse/events/__init__.py 24 additions, 4 deletionssynapse/events/__init__.py
- synapse/storage/data_stores/main/events.py 1 addition, 1 deletionsynapse/storage/data_stores/main/events.py
- synapse/storage/data_stores/main/events_worker.py 1 addition, 1 deletionsynapse/storage/data_stores/main/events_worker.py
- tests/storage/test_redaction.py 35 additions, 0 deletionstests/storage/test_redaction.py
Loading
Please register or sign in to comment