Ensure events forwarded by a previous dispatch are not re-dispatched
This fixes an issue where the login page was infinitely loaded after a user logged out, preventing them from logging in until they reloaded the page. Only applied after the user viewed a room before logging out.