0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-10-04 07:29:04 +02:00

Explicitly list the RejectedReasons that we can prove

This commit is contained in:
Erik Johnston 2015-02-06 15:16:26 +00:00
parent 0cd66885e3
commit cc0532a4bf

View file

@ -860,9 +860,14 @@ class FederationHandler(BaseHandler):
# Only do auth resolution if we have something new to say.
# We can't rove an auth failure.
do_resolution = False
provable = [
RejectedReason.NOT_ANCESTOR, RejectedReason.NOT_ANCESTOR,
]
for e_id in different_auth:
if e_id in have_events:
if have_events[e_id] != RejectedReason.AUTH_ERROR:
if have_events[e_id] in provable:
do_resolution = True
break