Yes, they did oppose the recognition of a settler-colonialist state a few decades ago when they came into existence as a resistance organization against the just-a-few-decades-before colonization and ethnic-cleansing of their land, but eventually accepted
the two-state solution.
But what the fuck does it matter what Hamas thinks, they have hardly any power. Only Israel can control what can be as of now since it's basically controlling all of Palestine, wtf are you even talking about. If Palestinians had any power they'd be free already, not living under a military occupation and economic blockade.
Two Palestinian states formed?
That's a first. One would suffice.
At this stage it's clear Israel has no plans for peace with the Palestinians - read the OP! - but that's been clear for a while and made BDS become a thing 18 years ago so whatever, hopefully that movement has an effect since the status quo means many more Palestinians being killed on the way to liberation of their land.
In the meantime, phoney socialists like you and
can cry for Israel in that super convincing way that you do.