No, I think at least some knew. I've seen rumors that the teams actually believed this was coming sooner and the players would be suspended for this season, and I believe that.
The Flyers 100% operated like they expected Hart gone. They already had one of the league's strongest goalie pipelines, but they spent a 2nd and 3rd on goalies in the draft. Gave Ersson a multi-year extension after just a handful of games, a full year before his RFA deal expired. Accepted Peterson as a cap dump, reportedly conducted 0 extension talks with Hart to date, and yeah, tried to trade him.
Given that even fans could read the tea leaves that, if anything came of it, he'd likely be involved...I'd say the Flyers' actions pretty obviously aligned with it.