Try reverting one of the roominfo tweaks

This commit is contained in:
Neil Alexander 2022-08-02 17:26:23 +01:00
parent 79e56dd733
commit e339cea33d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -375,7 +375,11 @@ func (t *missingStateReq) lookupStateAfterEventLocally(ctx context.Context, room
defer span.Finish()
var res parsedRespState
roomState := state.NewStateResolution(t.db, t.roomInfo)
roomInfo, err := t.db.RoomInfo(ctx, roomID)
if err != nil {
return nil
}
roomState := state.NewStateResolution(t.db, roomInfo)
stateAtEvents, err := t.db.StateAtEventIDs(ctx, []string{eventID})
if err != nil {
util.GetLogger(ctx).WithField("room_id", roomID).WithError(err).Warnf("failed to get state after %s locally", eventID)