Steve Howell
9eb825fff5
Refactor PM unread counts to use user_ids as keys.
...
We now use comma-delimited lists of user_ids for the following
data structures in unread.js:
- unread_privates[<user_ids_string>]
- get_counts.pm_count[<user_ids_string>]
2016-11-15 18:31:59 -08:00
Steve Howell
7750d43d23
Simplify finding elements in pm_list.js.
...
We no longer need iterate_to_find, and we just use simpler
selectors.
2016-11-15 18:31:59 -08:00
Steve Howell
59750a1cb9
Move more unread logic out of stream_list.js.
...
There are two split-outs code of the code here:
- Animation stuff is in unread_ui.js.
- PM unread counts get handled by pm_list.js.
2016-11-14 17:50:55 -08:00
Steve Howell
7b0c6459b4
Extract static/js/pm_list.js.
...
This handles most of the details of building the Private Messages
section in the upper left corner of the app.
2016-11-11 12:12:13 -08:00