Skip to content

Commit 6697d93

Browse files
authored
Horrible fix for element-hq/dendrite#3629 (#460)
### Pull Request Checklist * [x] Pull request includes a [sign off](https://github.com/matrix-org/dendrite/blob/master/docs/CONTRIBUTING.md#sign-off) Signed-off-by: `Your Name <[email protected]>`
1 parent 9f5070a commit 6697d93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stateresolutionv2.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ func ResolveStateConflictsV2(
7474
}
7575
}
7676
if createEvent == nil {
77-
panic("ResolveStateConflictsV2: cannot find create event in auth chain")
77+
// FIXME TODO: We previously panicked here but this meant Dendrite would crash on startup.
78+
// We really need to get our error handling sorted properly when doing state resolution..
79+
// See https://github.com/element-hq/dendrite/issues/3629
80+
return nil // we should return an error here :/
7881
}
7982
// Prepare the state resolver.
8083
conflictedControlEvents := make([]PDU, 0, len(conflicted))

0 commit comments

Comments
 (0)