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.
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 |
10 years ago | |
---|---|---|
.. | ||
attachment_preview_view.js | 10 years ago | |
attachment_view.js | 10 years ago | |
confirmation_dialog_view.js | 10 years ago | |
contact_list_view.js | 10 years ago | |
conversation_list_item_view.js | 10 years ago | |
conversation_list_view.js | 10 years ago | |
conversation_view.js | 10 years ago | |
end_session_view.js | 10 years ago | |
error_view.js | 10 years ago | |
file_input_view.js | 10 years ago | |
group_member_list_view.js | 10 years ago | |
group_update_view.js | 10 years ago | |
identicon_svg_view.js | 10 years ago | |
inbox_view.js | 10 years ago | |
key_conflict_dialogue_view.js | 10 years ago | |
key_verification_view.js | 10 years ago | |
list_view.js | 10 years ago | |
message_detail_view.js | 10 years ago | |
message_list_view.js | 10 years ago | |
message_view.js | 10 years ago | |
new_conversation_view.js | 10 years ago | |
new_group_update_view.js | 10 years ago | |
phone-input-view.js | 10 years ago | |
recipients_input_view.js | 10 years ago | |
toast_view.js | 10 years ago | |
whisper_view.js | 10 years ago | |
window_controls_view.js | 10 years ago |