Fix invalid roomNID returned

This commit is contained in:
Till Faelligen 2023-03-07 15:35:08 +01:00
parent 11a3fcc6cb
commit baef523cb0
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758

View File

@ -608,6 +608,7 @@ func persistEvents(ctx context.Context, db storage.Database, events []*gomatrixs
logrus.WithError(err).Error("failed to get or create roomNID") logrus.WithError(err).Error("failed to get or create roomNID")
continue continue
} }
roomNID = roomInfo.RoomNID
eventTypeNID, err := db.GetOrCreateEventTypeNID(ctx, ev.Type()) eventTypeNID, err := db.GetOrCreateEventTypeNID(ctx, ev.Type())
if err != nil { if err != nil {