The march was in support of Palestinians,not Hamas or Islamic Jihad.
If someone is witnessed supporting an organisation the UK government deems to be a terrorist organisation they can be arrested.
Therefore if the `mob` were supporting Hamas then tens of thousands of people would have been arrested.