buddy list: Make Group PMs appear more quickly.

It used to be the case that you would get new messages for a
huddle, but the huddle wouldn't show up on your buddy list until
the every-50-seconds mass update of the buddy list.

Now we make sure to work with non-stale jQuery objects, and,
more importantly, we resize ourselves if we add new huddles.

(The resize issue arises due to some complicated heuristics
where we don't want group PMs to take up too much of the buddy
list for users who don't have many in their history.)
This commit is contained in:
Steve Howell
2016-11-11 10:30:04 -08:00
parent 197edcca0e
commit 06f4857221
2 changed files with 21 additions and 4 deletions

View File

@@ -9,6 +9,10 @@ add_dependencies({
people: 'js/people.js'
});
set_global('resize', {
resize_page_components: function () {}
});
set_global('document', {
hasFocus: function () {
return true;