mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
Sort messages before building a message list for emails.
Otherwise they sometimes appear out of order! (imported from commit 26b71579b8f0c31ebdba0eef99afdf0e1772b676)
This commit is contained in:
@@ -1944,6 +1944,8 @@ def build_message_list(user_profile, messages):
|
||||
# },
|
||||
# ]
|
||||
|
||||
messages.sort(key=lambda message: message.pub_date)
|
||||
|
||||
for message in messages:
|
||||
header = message_header(user_profile, message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user