Thousands of mourners carrying posters of Haniyeh and Palestinian flags gathered near Tehran University in the city centre.