Photos published online by Iranian state media showed Gen. Ahmad Vahidi attending a meeting about the funeral of Khamenei, 86, then sitting alongside his casket as Iran’s theocracy held a smaller service for him Thursday night near the supreme leader’s former home in downtown Tehran.

Vahidi has become a major player in formulating Iran’s tough stance in negotiating a possible permanent end to the war with the United States, experts say. He is believed to be part of a small clique in direct contact with Iran’s new Supreme Leader Ayatollah Mojtaba Khamenei, who remains in hiding after being reportedly wounded in the Feb. 28 Israeli strikes that killed his father, the elder Khamenei.

Vahidi himself hasn’t been seen publicly since Feb. 8, weeks before the Iran war began. Israel killed top leaders in Iran’s military and government during the war — and has threatened the life of Ayatollah Mojtaba Khamenei as well.

Video published by Iranian state media showed the mourning ceremony for Khamenei near the husseiniyah at his compound in Tehran. An Israeli airstrike in the war’s first moments killed Khamenei and some of his family members. State media said Khamenei’s body sat within a coffin on a stage, with red tulips lined up in front of it. What appeared to be paper butterflies hung from the ceiling in front of it.