mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 14:12:47 +00:00
Handle create events better
This commit is contained in:
parent
61437d6e44
commit
4253eccfb3
3 changed files with 3 additions and 5 deletions
|
@ -311,7 +311,7 @@ func (s *eventStatements) BulkSelectStateAtEventByID(
|
|||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if result.BeforeStateSnapshotNID == 0 {
|
||||
if result.BeforeStateSnapshotNID == 0 && result.EventTypeNID != types.MRoomCreateNID {
|
||||
return nil, types.MissingEventError(
|
||||
fmt.Sprintf("storage: missing state for event NID %d", result.EventNID),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue