Steve Howell
b11fbf0b4b
Consolidate stream/topic logic for unread messages.
...
This change introduces an unread_topic_counter object
that manages unread counts for streams and topics. Consolidating
all the logic into a single class will set us up to add
logic for dealing with topic counts that includes provisional
counts of unread messages from the server. It also makes
the current code a little easier to reason about.
Most of this change was simply extracting functions, but
I also removed a few unnecessary and inconsistent calls to
`stream_data.canonicalized_name` that preceded our use of
Dict with a fold_case argument.
2016-12-14 19:10:55 -08:00
..
2016-12-01 14:27:17 -08:00
2016-11-29 08:58:39 -08:00
2016-12-13 11:04:08 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-03 18:43:47 -08:00
2013-07-29 12:11:26 -04:00
2016-12-07 16:11:52 -08:00
2016-08-09 11:59:49 -07:00
2016-06-07 21:58:44 -07:00
2016-12-07 16:11:52 -08:00
2016-12-14 15:37:43 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-05 21:55:22 -08:00
2016-12-07 22:13:47 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-02 18:35:53 -08:00
2016-12-02 18:49:42 -08:00
2016-12-03 18:43:47 -08:00
2016-12-02 14:43:09 -08:00
2016-12-05 09:50:37 -08:00
2016-08-25 14:12:58 -07:00
2016-12-07 16:11:52 -08:00
2016-12-02 14:43:09 -08:00
2016-12-02 18:35:53 -08:00
2016-12-07 16:11:52 -08:00
2016-12-09 11:08:08 -08:00
2016-12-14 15:37:43 -08:00
2016-12-09 11:08:08 -08:00
2016-12-07 16:11:52 -08:00
2014-03-14 20:48:52 -04:00
2016-12-07 16:11:52 -08:00
2016-12-05 09:50:37 -08:00
2016-12-07 16:11:52 -08:00
2016-12-13 20:36:39 -08:00
2016-12-05 09:50:37 -08:00
2016-12-02 18:35:53 -08:00
2016-12-07 16:11:52 -08:00
2016-03-27 13:49:52 -07:00
2016-12-02 18:35:53 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-02 18:35:53 -08:00
2016-12-05 09:50:37 -08:00
2016-12-02 14:43:09 -08:00
2016-12-09 11:08:08 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-07 16:11:52 -08:00
2016-12-02 18:35:53 -08:00
2016-12-01 14:27:17 -08:00
2014-01-15 16:07:20 -05:00
2016-12-13 20:22:13 -08:00
2016-12-14 16:32:32 -08:00
2016-09-26 21:05:24 -07:00
2013-09-16 14:20:43 -04:00
2016-12-07 16:11:52 -08:00
2016-12-05 09:50:37 -08:00
2016-12-09 11:08:08 -08:00
2016-12-05 09:50:37 -08:00
2016-12-13 13:16:51 -08:00
2016-12-07 16:11:52 -08:00
2016-12-01 14:27:17 -08:00
2016-12-07 16:11:52 -08:00
2016-11-16 22:01:30 -08:00
2016-12-02 18:39:30 -08:00
2016-12-02 14:43:09 -08:00
2016-12-14 15:37:43 -08:00
2016-12-02 14:43:09 -08:00
2016-12-14 19:10:55 -08:00
2016-12-05 09:50:37 -08:00
2016-12-05 09:50:37 -08:00
2016-12-07 16:11:52 -08:00