bugfix: Fix a bug which caused prev_content not to be sent to clients (#919)

I don't know how this ever passed QA... also fix a missing rows.Close()
This commit is contained in:
Kegsay 2020-03-17 16:45:40 +00:00 committed by GitHub
parent a66c701b29
commit 4af8323df3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -253,7 +253,7 @@ func (s *OutputRoomEventConsumer) updateStateEvent(event gomatrixserverlib.Event
}
prevEvent, err := s.db.GetStateEvent(
context.TODO(), event.Type(), event.RoomID(), stateKey,
context.TODO(), event.RoomID(), event.Type(), stateKey,
)
if err != nil {
return event, err