mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
Review comments
This commit is contained in:
parent
be7c636e70
commit
53c437c179
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue