Added private chat.

This commit is contained in:
retoor 2025-02-11 15:42:54 +01:00
parent bfe4b351c1
commit be35a6caf0

View File

@ -39,7 +39,7 @@ class WebView(BaseView):
if user:
channel = await self.services.channel.get_dm(self.session.get("uid"), user["uid"])
if channel:
return await web.HTTPFound("/channel/{}.html".format(channel["uid"]))
return web.HTTPFound("/channel/{}.html".format(channel["uid"]))
if not channel:
return web.HTTPNotFound()
user = await self.services.user.get(uid=self.session.get("uid"))