mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Fix invalid roomNID returned
This commit is contained in:
parent
11a3fcc6cb
commit
baef523cb0
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue