signal-desktop/js/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
2017-09-01 09:10:41 -07:00
..
attachment_preview_view.js Normalize views' template fetching pattern 2015-12-09 18:58:52 -08:00
attachment_view.js Unload conversations and old messages every half-hour 2017-08-04 12:03:25 -07:00
banner_view.js Confirmaton on send, banner when 'unverified' 2017-08-04 12:03:25 -07:00
confirmation_dialog_view.js ConfirmationDialogView: Make showCancel an explicit option 2017-08-04 12:03:25 -07:00
contact_list_view.js Remove empty string class passed to contact template 2017-08-04 12:03:25 -07:00
conversation_list_item_view.js Reduce unnecessary updates on conversations at startup 2017-02-22 01:22:44 -08:00
conversation_list_view.js Remove log message 2016-10-05 19:09:21 +09:00
conversation_search_view.js Fetch conversations once, clean up ConversationController API (#1420) 2017-09-01 09:10:41 -07:00
conversation_view.js Re-enable message box if enter pressed with no text/files 2017-08-17 08:54:38 -07:00
debug_log_view.js Add link to github on debug log 2016-04-09 20:55:21 -07:00
error_view.js Remove all concept of 'key conflict' from the app 2017-08-04 12:03:25 -07:00
file_input_view.js Flag voice note attachment protos as such 2017-05-12 09:55:15 -07:00
group_member_list_view.js Show call to action on group member list when verifying 2017-08-04 12:03:25 -07:00
group_update_view.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
hint_view.js Add hint for users with no groups or contacts 2015-11-27 22:26:56 -08:00
identicon_svg_view.js Fix svg icon colors 2016-08-30 18:31:02 -07:00
identity_key_send_error_view.js Improve experience when discovering identity key error on send 2017-08-04 12:03:25 -07:00
inbox_view.js Fetch conversations once, clean up ConversationController API (#1420) 2017-09-01 09:10:41 -07:00
install_view.js Move Whisper.events out of views and tests 2017-04-21 13:21:18 -07:00
key_verification_view.js Key verification error popup: Remove cancel, empty resolve() 2017-08-07 16:14:49 -07:00
last_seen_indicator_view.js Preserve lastSeenIndicator location when not focused 2017-06-01 16:09:27 -07:00
list_view.js Object.assign -> _.extend(), for to make Chrome 45 and below work 2017-08-04 12:03:25 -07:00
message_detail_view.js Restore 'cancel' button on delete message confirmation dialog 2017-08-07 16:14:49 -07:00
message_list_view.js Add items to conversation history when user verifies/unverifies 2017-08-04 12:03:25 -07:00
message_view.js MessageView: Always remove errors on re-render to prevent doubles 2017-08-07 16:14:49 -07:00
migration_view.js Export: Handle synchronous 'shutdown-complete' event (already offline) 2017-08-28 14:01:51 -07:00
network_status_view.js Eliminate all console errors during test run 2017-05-23 11:08:23 -07:00
new_group_update_view.js Remove comments after NewGroupUpdateView investigation 2017-08-04 12:03:25 -07:00
phone-input-view.js Fix standalone registration 2015-12-10 10:36:14 -08:00
recipients_input_view.js Simplify event arguments 2015-09-21 10:32:35 -07:00
recorder_view.js Use error.stack instead of error for console log 2017-06-20 16:57:11 -07:00
scroll_down_button_view.js Scroll down button: when scrolled up, or new non-visible message 2017-05-23 11:08:23 -07:00
settings_view.js Remove 'safety number approval' option from settings dialog 2017-08-04 12:03:25 -07:00
timestamp_view.js Fixed bubble timestamp update timer breakdown 2016-10-28 14:26:51 +09:00
toast_view.js Generalize toast view template 2016-09-07 13:04:45 -07:00
whisper_view.js Full export, migration banner, and full migration workflow - behind flag (#1342) 2017-08-28 13:06:10 -07:00