It was opened as a museum on 1 February 1935.[28] On July 10, 2020, the decision of the Council of Ministers to transform it into a museum was canceled by Council of State and the Turkish President Erdoğan signed a decree annulling the Hagia Sophia's museum status, reverting it to a mosque.[29][30] The Church of the Holy Apostles became the cathedral church and seat of the patriarchate for three years after the Fall of Constantinople, as Hagia Sophia became the city's Jama masjid. The Justinianic church was already in disrepair and in 1461 it was demolished and the Fatih Mosque was erected in its place. The Church of the Pantocrator, a church favoured for imperial burials in the latter Byzantine Empire, became the Zeyrek Mosque.