Coronavirus: How safe is air travel during the pandemic?

We may still be in the middle of a pandemic but many airlines have resumed leisurely flights worldwide. Some have even started booking middle seats on planes, after they had temporarily blocked selling them for months. So is it safe to get on a plane again?