There's an interesting race condition here. In testing, I noticed the sidebar sometimes didn't have contacts displayed. Investigation with DOMI said the users were just hidden. It turns out that we need to know the user is connected, before we send the list of users.

Hence, swapping the order of these postEvent calls fixes that (and I think it is more logical anyway).

It probably also means there's something wrong with the logic in our users view (and/or the relationships to the models), but I'll log it as a maintenance item that we need to fix in another card.