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 4cba16cb61 Fetch all conversations on startup of app, not on inbox load (#1437)
* Fetch all conversations on startup of app, not on inbox load

A recent change to fetch conversations less didn't take into account all
that can happen in the app without the inbox loaded. That only happens
when the window is shown, and messages can come in with the app in the
background. In that case, the conversation wouldn't have been loaded
from the database, but would be saved to the database anyway, losing
data.

This change fetches all conversations as soon as the the data store is
ready for a fetch. It also introduces failsafe throws to ensure that
synchronous ConversationController accesses don't happen until the
initial fetch is complete. A new getUnsafe() method was required to
account for some of the model setup that happens during that initial
conversation fetch.

Fixes #1428

FREEBIE

* Fix tests: ConversationController.load() required before get()

FREEBIE
8 years ago
..
models Fetch all conversations on startup of app, not on inbox load (#1437) 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 Fetch all conversations on startup of app, not on inbox load (#1437) 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