Have Hamas learnt a lesson?