Update roomserver/storage/shared/storage.go

This commit is contained in:
kegsay 2021-07-19 18:06:16 +01:00 committed by GitHub
parent c3ee147598
commit 9db941cfda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -867,7 +867,7 @@ func (d *Database) GetStateEvent(ctx context.Context, roomID, evType, stateKey s
}
stateKeyNID, err := d.EventStateKeysTable.SelectEventStateKeyNID(ctx, nil, stateKey)
if err == sql.ErrNoRows {
// No rooms a state event with this state key, otherwise we'd have an state key NID
// No rooms have a state event with this state key, otherwise we'd have an state key NID
return nil, nil
}
if err != nil {