This is the 4th `visibilitychange` event handler for Messages app, @julienw do you think it may be worth creating a single file that has _just_ the `visibilitychange` logic in it?