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