I think this was the Empress Theodosia or Theodora. I can not recall the name of Bishop involved who later became Pope.
It was Empress Theodora and Pope Sylvarius (sp) here is a link on New Advent. http://www.newadvent.org/cathen/13793a.htm