This commit is contained in:
retoor 2025-03-08 20:29:33 +01:00
parent d6061cb45b
commit 24a504e3a7

View File

@ -70,7 +70,7 @@ class WebView(BaseView):
item["uid"] = subscribed_channel["channel_uid"]
channels.append(item)
channels.sort(key=lambda x: x['last_message_on'], reverse=True)
channels.sort(key=lambda x: x['last_message_on'] or 'zzzzz', reverse=True)
name = await channel_member.get_name()
return await self.render_template("web.html", {"name": name, "channel": channel,"user": user,"messages": messages , "channels": channels})