mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
de744a6c55
Usually new elements are inserted in a predictable order relative to the sort order of the models/collection, but it's not garaunteed. This fixes up message element insertion to handle the general case where elements can be added in any order and must be displayed in correct order as determined by the collection's sort function. In the worst case, we'll have to iterate over the entire list of elements to find the right spot, but in practice most of the time we can short circuit based on the index of the model or by looking for the predecessor or successor of the element in question. |
||
---|---|---|
.. | ||
models | ||
views | ||
background.js | ||
chromium.js | ||
components.js | ||
conversation_controller.js | ||
conversation_panel.js | ||
database.js | ||
debugLog.js | ||
delivery_receipts.js | ||
emoji_util.js | ||
expire.js | ||
expiring_messages.js | ||
index.js | ||
libphonenumber-util.js | ||
libsignal-protocol-worker.js | ||
libtextsecure.js | ||
Mp3LameEncoder.min.js | ||
notifications.js | ||
options.js | ||
panel_controller.js | ||
read_receipts.js | ||
register.js | ||
registration.js | ||
signal_protocol_store.js | ||
storage.js | ||
WebAudioRecorderMp3.js |