Another way to look at this is that if Assad wins, Hamas has lost its safe-haven inside Syria.
That is true - that regime, if it lasts, will never trust Hamas again, and will deprive them of material support. There are all sorts of shifts and power plays going on.