bd5f43bdb1
This listener is doing way more work than necessary to update the dom by removing all the list items and re-creating them. This also causes the bug where selected state is cleared when new messages arrive, not to mention binding new event listeners without unbinding the old ones. Fix by simply promoting an element to the top of the list when it's active_at value changes, rather than re-rendering the whole list. This could backfire if the value gets changed to an earlier timestamp but for now we assume that won't happen. // 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 |