mirror of https://github.com/zulip/zulip.git
f06bd41586
Before this fix, if you scrolled back in your PM history for a person that you've had recent conversations with, then we would backdate the record of their most recent conversation, and this would make the sort ordering under the "Private messages" section incorrect. This commit fixes this error by re-writing the function message_store.insert_recent_private_message() to check any prior timestamps for that user. It also optimizes the function a bit to short-circuit in O(1) time for cases where a recipient already has a more recent timestamp, by having a Dict keyed on user_ids_string. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
locale | ||
styles | ||
templates | ||
third | ||
.gitignore | ||
favicon.ico | ||
node_modules | ||
robots.txt |