zulip/frontend_tests/node_tests
Steve Howell f06bd41586 Fix PM list sort ordering during scrollback situations.
Before this fix, if you scrolled back in your PM history for a
person that you've had recent conversations with, then we would
backdate the record of their most recent conversation, and this
would make the sort ordering under the "Private messages"
section incorrect.

This commit fixes this error by re-writing the function
message_store.insert_recent_private_message() to check any
prior timestamps for that user.  It also optimizes the function
a bit to short-circuit in O(1) time for cases where a recipient
already has a more recent timestamp, by having a Dict keyed
on user_ids_string.
2017-04-13 12:13:20 -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 drafts: Move snapshot_message from compose to drafts 2017-03-30 10:20:37 -07:00
compose_fade.js Use stream_id in recipient comparisons. 2017-02-26 16:18:02 -08:00
composebox_typeahead.js refactor: Use user_id as key for pm_recipient_count. 2017-02-06 22:38:22 -08:00
dict.js Add Dict.clear() method. 2017-04-07 15:20:12 -07:00
dispatch.js Extract settings_filters.js. 2017-04-13 10:39:39 -07:00
drafts.js drafts: Move snapshot_message from compose to drafts 2017-03-30 10:20:37 -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: Clean up state more consistently in node tests. 2017-04-05 11:59:48 -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 Add narrow.is_for_stream_id() helper. 2017-04-13 07:49:55 -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
search_suggestion.js search_suggestion: Suggest multiple people in `pm-with` searches. 2017-02-07 14:13:29 -08: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 stream_data: Linkify URL in stream description. 2017-03-20 22:25:03 -07:00
stream_list.js js dependencies: Split hash_util.js from hashchange.js. 2017-03-18 20:40:34 -07:00
subs.js refactor: Pass in a full sub to sub_or_unsub(). 2017-03-05 11:55:09 -08:00
templates.js templates: Rename `admin-alias-list.handlebars`. 2017-04-04 15:48:03 -07:00
topic_generator.js Create topic_generator.js. 2017-04-06 12:23:44 -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 Break typeahead_helper's dependency on compose.js. 2017-03-18 10:35: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 node tests: Test some zero-count cases for unread.js. 2017-04-03 16:31:57 -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