zulip/frontend_tests/node_tests
Steve Howell 0ced7cfc55 Make newly subscribed streams appear active.
When you subscribe to a stream, we now set a newly_subscribed
flag on the object, and we return true during the is_active()
call.

This solves the problem that immediately after you subscribe, you
don't have any messages in the stream, so it would appear active
by our old criteria.

This is still something of a workaround, as once you reload, the
stream will become inactive again, unless other messages come in.

A more permanent solution here would be to have the backend
indicate newly subscribed streams to us (apart from the initial
event), but we may not really need that in practice.
2017-04-28 07:40:25 -07:00
..
activity.js buddy list: Make small realms show all users. 2017-04-04 15:57:10 -07:00
alert_words.js refactor: Remove last uses of page_params.email in JS code. 2017-01-21 21:45:12 -08:00
bot_data.js Remove dead code related to bot/stream settings. 2017-04-07 15:20:12 -07:00
compose.js compose: Distinguish get_message_type() from composing(). 2017-04-24 12:42:06 -07:00
compose_actions.js Extract compose_state.js. 2017-04-18 12:26:58 -07:00
compose_fade.js Use stream_id in recipient comparisons. 2017-02-26 16:18:02 -08:00
composebox_typeahead.js composebox_typeahead.js: Add typeahead cancelling for '# '. 2017-04-25 15:55:23 -07:00
dict.js Add Dict.is_empty(). 2017-04-21 21:59:22 -07:00
dispatch.js compose: Re-render emoji picker when realm_emoji is added/deleted. 2017-04-18 12:18:52 -07:00
drafts.js compose: Distinguish get_message_type() from composing(). 2017-04-24 12:42:06 -07:00
echo.js node tests: Speed up echo.js by stubbing window. 2017-04-04 06:31:37 -07:00
filter.js node tests: Add test cases for pm-with filter. 2017-04-03 16:31:57 -07:00
hashchange.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
hotkey.js hotkey.js: Add reactions popover navigation. 2017-04-18 23:25:45 -07:00
i18n.js node tests: Simplify i18n.js and avoid jquery leak. 2017-04-04 06:51:31 -07:00
message_edit.js node tests: Simplify i18n.js and avoid jquery leak. 2017-04-04 06:51:31 -07:00
message_list.js eslint: Update node tests to use new comma-dangle rules. 2016-12-03 15:00:24 -08:00
message_list_view.js Move small_avatar_url() to people.js. 2017-01-21 21:45:12 -08:00
message_store.js Fix PM list sort ordering during scrollback situations. 2017-04-13 12:13:20 -07:00
muting.js Remove references to page_params.domain. 2017-03-14 17:17:42 -07:00
narrow.js Extract narrow_state.js. 2017-04-25 09:57:32 -07:00
password.js Add node tests for password checks. 2017-01-10 04:55:41 -08:00
people.js Add people.get_realm_count(). 2017-04-04 15:57:10 -07:00
pm_list.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
reactions.js reactions: Only warn for unknown user ids. 2017-03-26 11:51:36 -07:00
rtl.js Add rtl.js library for detecting direction of text. 2017-04-22 11:25:54 -07:00
search_suggestion.js Extract narrow_state.js. 2017-04-25 09:57:32 -07:00
server_events.js alerts: Change sidebar alerts to be at top of the screen. 2017-04-03 16:22:05 -07:00
settings_bots.js Extract settings_bots.js. 2017-04-07 15:20:12 -07:00
stream_color.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
stream_data.js Make newly subscribed streams appear active. 2017-04-28 07:40:25 -07:00
stream_list.js Change argument type for stream_data.is_active(). 2017-04-28 07:39:52 -07:00
subs.js refactor: Pass in a full sub to sub_or_unsub(). 2017-03-05 11:55:09 -08:00
templates.js left-sidebar: Restyle to have new look. 2017-04-25 17:47:36 -07:00
topic_generator.js Add topic_generator.get_next_topic(). 2017-04-21 21:59:22 -07:00
topic_list.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
typeahead_helper.js Change argument type for stream_data.is_active(). 2017-04-28 07:39:52 -07:00
typing_data.js Extract typing indicator inbound timing logic. 2017-03-22 08:20:21 -07:00
typing_status.js Revamp state tracking for outbound typing indicators. 2017-03-22 07:01:20 -07:00
unread.js Extract narrow_state.js. 2017-04-25 09:57:32 -07:00
user_events.js Extract settings_users.js. 2017-04-13 10:39:39 -07:00
util.js Compare recipients using to_user_ids to fix live updates. 2017-02-26 16:18:02 -08:00