This post was originally written by a colleague of mine, @michelgrootjans on our internal Confluence.
It's inefficient and time consuming to use the People sidebar to find people when there are many of them.
Manual sorting doesn't scale.
Using the 'New Chat' works of course, but why would you need a sidebar then?
I would like my sidebar to be automatically sorted.
For OSX users, edit HipChat.app/Contents/Resources/chat.html
.(tested and works)
For windows users: edit <hipchat_installation_root>/localweb/hipchat-client.js
(not tested, please let us know in the comments if this works for you)
I would like to sort conversations based on recency. Feel free to edit this page if you've found how to do this.
I've managed to sort by unread count first, then by alphabetical name. To get this behaviour, add these lines at the beginning of the function orderRooms:
...
}, { key: 'orderRooms', value: function orderRooms(rooms) { // start of hack: sort rooms by [unread, name] rooms = _(rooms).chain() .sortBy('name').reverse() .sortBy('unreadCount').reverse() .value() // end of hack if (this.data.room_order.length) { var results = _.compact(_.map(this.data.room_order, function (jid) {
...
Thanks again Michel for letting me share this interesting hack with the rest of the world!
Maarten Cautreels
2 comments