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
lilia cfc3b8e6a5 Fix phantom outgoing messages
This bug was caused by a race between indexeddb requests and sending
messages. Order of events to repro was roughly:

1. send async idb request for current message list
2. add new message(s)
3. idb request returns with now incomplete message list
4. message collection gets reset to list from 3, removing messages
added in 2, but not removing their phantom views/dom elements. (bug)
5. send another idb request for current message list
6. idb request returns bearing all messages including those from 2.
7. messages from 2 are added and rendered a second time.

The fix was simply to not remove messages in 4, which means we reuse the
original message model object rather than recreating it in 7.

Fixes #243

// FREEBIE
10 years ago
..
models Fix phantom outgoing messages 10 years ago
views Invert pending/sent model 10 years ago
axolotl_store.js Remove remaining traces of localStorage 10 years ago
background.js Invert pending/sent model 10 years ago
bimap.js Simplify panel state management and message passing 10 years ago
chromium.js Fix for conversation & inbox windows closing callbacks never called. 10 years ago
components.js 239 Auto-expand message area when typing 10 years ago
conversation_panel.js Apply custom chrome to conversation windows 10 years ago
database.js Move local identitykey and registrationid to indexeddb 10 years ago
index.js Keep inbox window open, but allow it to be hidden 10 years ago
libaxolotl-worker.js Use a worker to facilitate key generation 10 years ago
libphonenumber-util.js jshint all the things 10 years ago
libtextsecure.js Fix outgoing identity key conflict handling 10 years ago
notifications.js Remove remaining traces of localStorage 10 years ago
options.js Add error dialog for too many devices 10 years ago
panel_controller.js Update notification code to new avatar format 10 years ago
register.js Fix registration page 10 years ago
storage.js Fix tests 10 years ago