"Some jihadists or pro-jihadist Salafists have issued video clips and tweets explaining their lack of assistance to the Palestinians. One tweet stated, “The Hamas government is apostate, and what it is doing does not constitute jihad, but rather a defense of democracy [which Salafists oppose].” Another tweet said, “Khaled Meshaal: Hamas fights for the sake of freedom and independence. The Islamic State: it fights so that all religion can be for God.” Meshaal is head of Hamas' political bureau.
On July 22, the Egyptian Salafist sheikh Talaat Zahran declared that it is inappropriate to aid the people of Gaza because they do not follow a legitimate leadership, and because they are equivalent to Shiites since they follow them, referring to Hezbollah and Iran, with which the Sunni Hamas movement has been allied. Thus the jihadists' position is not simply a political stance, but stems from Salafist theological principles.
Salafists believe that jihad must be performed under legitimate leadership. This argument is advanced through the “banner and commander” concept, which holds that whoever undertakes jihad must follow a commander who fulfills the criteria of religious and political leadership and has raised the banner of jihad. Given that there is neither a legitimate leader nor a Salafist-approved declaration of jihad in Palestine, fighting there is forbidden.
So Hamas is the least of evil but for the moment more evil than Hezbollah with which there is an armed truce more or less
Hamas didn't understand and doesn't untill now that this is the only basis on which military power works, you just stop attacking each other because each has more to lose than to gain and after this the diplomats can start working (over the years)
Hamas doesn't understand that it has no business covering for the jihadist fighter groups in Gaza who are firing some of the rockets because of the solidarity of the fight against their common enemy. The only enemy for Jihadists are all those who are not jihadists or Salafists, even if they fight and die together in the beginning