Sort submessages after appending to it
I don't think we ever receive thread messages out of order, so this
probably isn't strictly necessary, but it is a bit safer just in case.
@@ -3169,6 +3169,7 @@ def subprocess_thread_message(message_json, eventrouter, team, channel, history_
message = SlackThreadMessage(parent_message, message_json, team, channel)
if message.ts not in parent_message.submessages:
parent_message.submessages.append(message.ts)
+ parent_message.submessages.sort()
channel.hash_message(parent_ts)
channel.change_message(parent_ts)
