muting: Refactor to move side effects into UI layer.

This commit is contained in:
Elliott Jin
2017-02-11 00:17:19 -08:00
committed by showell
parent 46226bad21
commit d233f617dd
5 changed files with 31 additions and 53 deletions

View File

@@ -164,7 +164,7 @@ var zero_counts = {
assert.equal(counts.home_unread_messages, 1);
assert.equal(unread.num_unread_for_stream('social'), 1);
muting.mute_topic('social', 'test_muting');
muting.add_muted_topic('social', 'test_muting');
counts = unread.get_counts();
assert.equal(counts.stream_count.get('social'), 0);
assert.equal(counts.home_unread_messages, 0);