mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 08:03:09 -06:00
Return without error when no room info available
This commit is contained in:
parent
709528b82f
commit
80652422c3
|
|
@ -712,7 +712,7 @@ func (d *Database) GetRoomVersion(ctx context.Context, roomID string) (gomatrixs
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if roomInfo == nil {
|
if roomInfo == nil {
|
||||||
return "", fmt.Errorf("no room info available for %s", roomID)
|
return "", nil
|
||||||
}
|
}
|
||||||
return roomInfo.RoomVersion, nil
|
return roomInfo.RoomVersion, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue