The Islamic State (IS) group has welcomed the death of Iranian general Qasem Soleimani, the head of the elite Quds Force.
In a statement, it described the general’s demise as an act of divine intervention that benefitted jihadists. However, it made no mention at all of the US, which carried out the deadly drone strike against Soleimani in Baghdad on 3 January.
President Donald Trump’s decision to assassinate Gen Soleimani set off a chain of consequences – one of the first was on the unfinished war against jihadists.
Almost immediately the US-led coalition fighting IS suspended operations in Iraq. The US and its allies announced that their main job was now defending themselves.
From a military point of view, they probably had no choice.
Iran and the militias it sponsors here in Iraq have sworn vengeance for the killings caused by the missile fired by a US drone at Soleimani’s vehicle as it left Baghdad airport on Friday.
That puts US forces in Iraq, and those from Western allies working alongside them, squarely in the firing line.
It is also very good for IS, and will speed up its recovery from the blows it took when its “caliphate” was smashed.
It is also good news for the extremists that the Iraqi parliament passed a motion demanding an immediate American withdrawal from the entire country.
IS has been grimly resilient over many years. It regenerated itself from the ruins of an earlier group, al-Qaeda in Iraq.
A big military operation in 2016 and 2017 was needed to end IS control of territory straddling Iraq and Syria.
Many jihadist fighters ended up dead or in prison. But that did not kill the organisation.
It is still active in its old stamping grounds in Iraq and Syria, mounting ambushes, extorting funds, and ending more lives.
The Iraqi state has effective elite army and police units, mainly trained by the Americans and European allies who joined the fight against IS.
Since Soleimani’s assassination, the US has suspended training as well as operations. So have Denmark and Germany.
The Germans are pulling military trainers out to Jordan and Kuwait.
Iraqi forces take most of the risks on the ground in operations against IS. But as well as training, they have relied on vital logistical help from US forces, who are now hunkering down in their bases.
IS militants have something else to celebrate. When Mr Trump decided to kill Soleimani they were gifted the spectacle of one of their enemies, the US president, assassinating another.
In 2014, the jihadists went on the offensive, seizing broad swathes of Iraq, including Mosul, the country’s second city.
The leading Shia cleric in Iraq, Grand Ayatollah Ali al-Sistani, issued a call-to-arms to fight the Sunni extremists.
Young Shia men volunteered in their thousands – and Soleimani and his Quds Force were a big part of their transformation into armed units. The militias were ruthless, often brutal foes of IS.
Now, the Iran-backed groups have been absorbed into the Iraqi military under an umbrella organisation called the Popular Mobilisation. The most prominent militia leaders have become powerful political leaders.
In the years after 2014, the US and the militias faced the same enemy. But the Shia militias now look certain to return to their roots, which lie in the fight against the US-led occupation after the 2003 invasion.
They killed many American soldiers – helped by training and better weapons supplied by Soleimani – which was one of the reasons that President Trump gave for ordering the attack last week.
Since Mr Trump unilaterally pulled out of the Iran nuclear agreement in 2018, the Americans and the Iranians have been spiralling down towards the edge of war.
Before Soleimani was killed the Shia militias were already going back to targeting the Americans.
An attack in late December on a base in northern Iraq that killed a US contractor was answered by air strikes that killed at least 25 fighters from a group called Kataib Hezbollah.
Their leader, Abu Mahdi al-Muhandis, met Soleimani at Baghdad’s airport and was blown to pieces alongside him in the same car.
In an editorial of the weekly IS newspaper al-Naba, the group said that Soleimani and al-Muhandis died at the hands of their “allies” – a reference to the US.
It said the enemies of IS were busy fighting each other, which would drain their energy and resources and ultimately benefit jihadists.
History has shown that jihadist extremists thrive most when they can take advantage of instability, chaos, and weakened, divided enemies.
That has happened before and there is a strong chance it will happen again.