Added alter.

This commit is contained in:
retoor 2025-03-09 20:38:14 +01:00
parent d9ac1813ba
commit 91d8f3efd1

View File

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