Review comments

This commit is contained in:
Kegan Dougal 2020-04-28 10:33:34 +01:00
parent be7c636e70
commit 53c437c179

View file

@ -95,7 +95,7 @@ func (b *backfillRequester) calculateNewStateIDs(targetEvent, prevEvent gomatrix
continue continue
} }
// The state IDs BEFORE the target event are the state IDs BEFORE the prev_event PLUS the prev_event itself // The state IDs BEFORE the target event are the state IDs BEFORE the prev_event PLUS the prev_event itself
if ev.Type() == prevEvent.Type() && ev.StateKey() != nil && ev.StateKey() == prevEvent.StateKey() { if ev.Type() == prevEvent.Type() && ev.StateKey() != nil && *ev.StateKey() == *prevEvent.StateKey() {
newStateIDs[i] = prevEvent.EventID() newStateIDs[i] = prevEvent.EventID()
foundEvent = true foundEvent = true
break break