1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00
phorge-phorge/webroot/rsrc
Bob Trahan 6c049d06ce Conpherence - change message rendering logic to eradicate possibility of duplicates
Summary:
Fixes T6713. Before this diff, we would update the DOM when various requests came back, but the logic to erase race conditions proved too tricky for me to get right. Instead, change the algorithm up and keep a set of transaction ids around per thread. When its time to update the transactions, sort the list of ids and just render the whole darn set again.

To make this work, this ends up adding transacton ids to fake transactons like "show older" and date markers. This is able to work by using a float sort and giving these transactions ids that are .5 from being an integer and in the right place numerically.

Test Plan: for durable column, clicked show older and it worked. sent a message and it worked. for main view, clicked show older and it worked. sent a message and it worked.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6713

Differential Revision: https://secure.phabricator.com/D12819
2015-05-13 11:06:54 -07:00
..
css Month view should adjust to display badges with event count instead of event list on mobile and tablets. 2015-05-12 17:56:52 -07:00
externals Stop using JX.Scrollbar for main page content 2015-05-11 12:02:00 -07:00
favicons Add HiDPI favicons 2014-11-07 17:07:38 -08:00
image Recompress login sprite 2015-05-07 10:49:54 -07:00
js Conpherence - change message rendering logic to eradicate possibility of duplicates 2015-05-13 11:06:54 -07:00