Don't dupe missing auth events

This commit is contained in:
Neil Alexander 2021-06-29 17:44:55 +01:00
parent b15d77e1be
commit 46ac016709
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -596,6 +596,8 @@ withNextEvent:
); err != nil { ); err != nil {
return fmt.Errorf("api.SendEvents: %w", err) return fmt.Errorf("api.SendEvents: %w", err)
} }
t.hadEvents[ev.EventID()] = true // if the roomserver didn't know about the event before, it does now
t.cacheAndReturn(ev.Headered(stateResp.RoomVersion))
delete(missingAuthEvents, missingAuthEventID) delete(missingAuthEvents, missingAuthEventID)
continue withNextEvent continue withNextEvent
} }