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
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
..
models Remove all concept of 'key conflict' from the app 8 years ago
views Fetch conversations once, clean up ConversationController API (#1420) 8 years ago
_test.js Move Whisper.events out of views and tests 8 years ago
blanket_mocha.js Fix blanket popup 11 years ago
emoji_util_test.js Bulletproof getCountOfAllMatches against non-global regex input 8 years ago
fixtures.js test/fixtures.js: Cleanup - data at top, images/setup at bottom 8 years ago
fixtures_test.js Animated loading screens on startup and first conversation load 8 years ago
index.html Full export, migration banner, and full migration workflow - behind flag (#1342) 8 years ago
keychange_listener_test.js Fetch conversations once, clean up ConversationController API (#1420) 8 years ago
libphonenumber_util_test.js Refactor number parsing and validation 10 years ago
manual.txt Add comment and fine-tune last-seen indicator when not focused 8 years ago
protos Add a page for testing views. 11 years ago
reliable_trigger_test.js Override Backbone's trigger with one that catches exceptions 8 years ago
storage_test.js isUntrusted: Return false if firstUse is true 8 years ago
test.js Move Whisper.events out of views and tests 8 years ago