This commit is contained in:
retoor 2025-03-08 18:41:37 +01:00
parent 0a9b66d2f7
commit 8e195a49e3

View File

@ -27,6 +27,7 @@ class ThreadsView(BaseView):
thread['name_color'] = user_last_message['color']
thread['last_message_user_color'] = user_last_message['color']
threads.append(thread)
threads.sort(key=lambda x: x['last_message_on'], reverse=True)
return await self.render_template("threads.html", dict(threads=threads,user=user))