With the Byzantine–Bulgarian Treaty of 927, which affirmed the Bulgarian victory in the War of 913–927, the Ecumenical Patriarch of Constantinople eventually recognized Leontius' successor Demetrius as Patriarch of Bulgaria.