You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/test/views
Scott Nonnenberg d8ce198f55 Fetch conversations once, clean up ConversationController API (#1420)
* Fetch conversations once, clean up ConversationController API

Race conditions around re-fetching have caused some problems recently,
so this removes the need to re-fetch conversations. They are fetched
once or saved once, and that is it. All interaction goes through the
ConversationController, which is the central source of truth.

We have two rules for Conversations:

1. If a conversation is in the ConversationController it doesn't need
   to be fetched, but its initial fetch/save might be in progress. You
   can wait for that fetch/save with conversation.initialPromise.
2. If a conversation is not already in the ConversationController, it's
   not yet in the database. It needs to be added to the
   ConversationController and saved to the database.

FREEBIE

* Remove Conversation.fetch() call in Message.handleDataMessage()

FREEBIE

* ConversationController.API cleanup: Fix two missing spots

FREEBIE
8 years ago
..
attachment_view_test.js Add test verifying that AttachmentView shows file size 8 years ago
conversation_search_view_test.js Don't show left groups in list of all contacts 9 years ago
group_update_view_test.js Render group updates 10 years ago
last_seen_indicator_view_test.js Keep last seen indicator around for five seconds 8 years ago
list_view_test.js Fix minor style errors 9 years ago
message_view_test.js Fetch conversations once, clean up ConversationController API (#1420) 8 years ago
network_status_view_test.js Eliminate all console errors during test run 8 years ago
scroll_down_button_view_test.js Scroll down button: when scrolled up, or new non-visible message 8 years ago
threads_test.js Remove erroneous license file and headers 10 years ago
timestamp_view_test.js Use momentjs for timestamp localization 9 years ago
whisper_view_test.js Rename Whisper.View#attributes 10 years ago