diff options
author | Eric Eastwood <erice@element.io> | 2022-07-07 11:52:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 11:52:45 -0500 |
commit | a962c5a56de69c03848646f25991fabe6e4c39d1 (patch) | |
tree | 4bf64255651e66f62114a4f03b235dd88299c844 /tests/test_event_auth.py | |
parent | Add --build-only option to complement.sh to prevent actually running Compleme... (diff) | |
download | synapse-a962c5a56de69c03848646f25991fabe6e4c39d1.tar.xz |
Fix exception when using MSC3030 to look for remote federated events before room creation (#13197)
Complement tests: https://github.com/matrix-org/complement/pull/405 This happens when you have some messages imported before the room is created. Then use MSC3030 to look backwards before the room creation from a remote federated server. The server won't find anything locally, but will ask over federation which will have the remote event. The previous logic would choke on not having the local event assigned. ``` Failed to fetch /timestamp_to_event from hs2 because of exception(UnboundLocalError) local variable 'local_event' referenced before assignment args=("local variable 'local_event' referenced before assignment",) ```
Diffstat (limited to 'tests/test_event_auth.py')
0 files changed, 0 insertions, 0 deletions