cfc3b8e6a5
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 |
||
---|---|---|
.. | ||
models | ||
views | ||
axolotl_store.js | ||
background.js | ||
bimap.js | ||
chromium.js | ||
components.js | ||
conversation_panel.js | ||
database.js | ||
index.js | ||
libaxolotl-worker.js | ||
libphonenumber-util.js | ||
libtextsecure.js | ||
notifications.js | ||
options.js | ||
panel_controller.js | ||
register.js | ||
storage.js |