Site URL change not taking effect

I just had the same issue with the latest snap install. The message was shown to every user, when the URL changed the resources (pictures, video…) were not shown for anyone, and changing it from General would just revert it.

However, coming to the server and doing

sudo snap set rocketchat-server siteurl=<my url>
sudo service snap.rocketchat-server.rocketchat-server restart

changed it for good.