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
Scott Nonnenberg 10a38297b8 Only show notifications when done with sync (#1507)
This prevents the parade of notifications if a machine wakes up from
sleep. Basically covers situations that the loading screen doesn't
already.

When disabled, notifications will be cached until they are subsequently
re-enabled, at which time all the pending notifications will be summarized.

From the background page, notifications are disabled during connection attempts
until an empty event. This means we can always safely call conversation.notify
to queue a notification for the next batch, dropping some options from message
and conversation model methods.

We've also moved the calls to check window focus and draw attention to the
window, which were previously included in the conversation model, but are now
performed by the Notification system, because the time that the notification is
displayed might be some time after the message is added by the conversation, so
decisions about focus and attention should be made in that moment and not
before.

// FREEBIE
8 years ago
..
models Only show notifications when done with sync (#1507) 8 years ago
views Eliminate $name$ in two places (#1520) 8 years ago
Mp3LameEncoder.min.js Copy audio-related files into js/ instead of symlinking them (#1456) 8 years ago
WebAudioRecorderMp3.js Copy audio-related files into js/ instead of symlinking them (#1456) 8 years ago
XMLHttpRequest.js Certificate pinning via node XMLHttpRequest implementation (#1394) 8 years ago
background.js Only show notifications when done with sync (#1507) 8 years ago
backup.js Separate dir selection from import, better import button text 8 years ago
chromium.js Remove extension.notification 8 years ago
components.js Upgrade emoji support (#1482) 8 years ago
conversation_controller.js Remove dead code 8 years ago
database.js Move logging to disk via bunyan 8 years ago
delivery_receipts.js Additional logging when we get delivery receipt for unknown msg 8 years ago
emoji_util.js Upgrade emoji support (#1482) 8 years ago
expire.js Build expiration date 8 years ago
expiring_messages.js Fetch all conversations on startup of app, not on inbox load (#1437) 8 years ago
focus_listener.js Move focus listeners to their own file 8 years ago
i18n.js Use correct locale, fall back to en if we don't have translations 8 years ago
keychange_listener.js Fetch conversations once, clean up ConversationController API (#1420) 8 years ago
libphonenumber-util.js Refactor number parsing and validation 10 years ago
libsignal-protocol-worker.js Update libsignal-protocol v1.0.0 9 years ago
libtextsecure.js Only retry messages on startup, not every sockect reconnect (#1510) 8 years ago
logging.js Redact group ids in logging 8 years ago
notifications.js Only show notifications when done with sync (#1507) 8 years ago
read_receipts.js Read/Delivery Receipts: Wait for resolution in main queue 8 years ago
registration.js Refactor registration event 9 years ago
reliable_trigger.js Apply reliable trigger to Backbone.Collection as well 8 years ago
rotate_signed_prekey_listener.js Reschedule all timers on time travel, set interval back to 1000ms 8 years ago
signal_protocol_store.js isUntrusted: Return false if firstUse is true 8 years ago
spell_check.js Merge locale-provided strings into english for failover support 8 years ago
storage.js Import: Wait until db writes resolve before saying we're done (#1401) 8 years ago
wall_clock_listener.js Reschedule all timers on time travel, set interval back to 1000ms 8 years ago