Updated save.

This commit is contained in:
retoor 2025-07-18 17:44:45 +02:00
parent 0c331bbb93
commit e23d6571c8
2 changed files with 1 additions and 3 deletions

View File

@ -92,8 +92,7 @@ class ChannelMessageService(BaseService):
return {} return {}
if not message["html"].startswith("<chat-message"): if not message["html"].startswith("<chat-message"):
await (await self.get(uid=message["uid"])).save() await self.save(message)
message["html"] = (await self.get(uid=message["uid"])).html
return { return {
"uid": message["uid"], "uid": message["uid"],

View File

@ -82,7 +82,6 @@ class WebView(BaseView):
await self.app.services.notification.mark_as_read( await self.app.services.notification.mark_as_read(
self.session.get("uid"), message["uid"] self.session.get("uid"), message["uid"]
) )
print(messages)
name = await channel_member.get_name() name = await channel_member.get_name()
return await self.render_template( return await self.render_template(
"web.html", "web.html",