add code to stop us making requests to the recent messages url if app is offline