Return without error when no room info available

This commit is contained in:
Devon Hudson 2023-06-13 10:22:24 +01:00
parent 709528b82f
commit 80652422c3
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -712,7 +712,7 @@ func (d *Database) GetRoomVersion(ctx context.Context, roomID string) (gomatrixs
return "", err
}
if roomInfo == nil {
return "", fmt.Errorf("no room info available for %s", roomID)
return "", nil
}
return roomInfo.RoomVersion, nil
}