Can't we just use :
```Javascript
MessageManager.getThreads(ThreadListUI.renderThreads);
if (window.location.hash.substr(0, 5) === '#num=') {
   ThreadUI.updateHeaderData();
}
```

?