signal-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
2017-09-01 09:10:41 -07:00
..
models Remove all concept of 'key conflict' from the app 2017-08-04 12:03:25 -07:00
views Fetch conversations once, clean up ConversationController API (#1420) 2017-09-01 09:10:41 -07:00
_test.js Move Whisper.events out of views and tests 2017-04-21 13:21:18 -07:00
blanket_mocha.js Fix blanket popup 2014-07-26 19:14:14 -04:00
emoji_util_test.js Bulletproof getCountOfAllMatches against non-global regex input 2017-05-10 15:51:39 -07:00
fixtures.js test/fixtures.js: Cleanup - data at top, images/setup at bottom 2017-05-23 11:08:23 -07:00
fixtures_test.js Animated loading screens on startup and first conversation load 2017-08-04 12:03:25 -07:00
index.html Full export, migration banner, and full migration workflow - behind flag (#1342) 2017-08-28 13:06:10 -07:00
keychange_listener_test.js Fetch conversations once, clean up ConversationController API (#1420) 2017-09-01 09:10:41 -07:00
libphonenumber_util_test.js Refactor number parsing and validation 2015-12-09 18:58:51 -08:00
manual.txt Add comment and fine-tune last-seen indicator when not focused 2017-06-01 16:09:27 -07:00
protos Add a page for testing views. 2014-09-01 11:52:58 -07:00
reliable_trigger_test.js Override Backbone's trigger with one that catches exceptions 2017-08-04 12:03:25 -07:00
storage_test.js isUntrusted: Return false if firstUse is true 2017-08-04 12:03:25 -07:00
test.js Move Whisper.events out of views and tests 2017-04-21 13:21:18 -07:00