diff src/get_chat.js.luan @ 53:9298b04607ae

add unread
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 03 Mar 2025 19:39:30 -0700
parents 42b741a1d5c6
children afd5ab5b02a2
line wrap: on
line diff
--- a/src/get_chat.js.luan	Mon Mar 03 12:29:06 2025 -0700
+++ b/src/get_chat.js.luan	Mon Mar 03 19:39:30 2025 -0700
@@ -22,6 +22,7 @@
 	local user = current_user() or error()
 	local chat = Http.request.parameters.chat or error()
 	chat = get_chat_by_id(chat) or error()
+	chat.read(user)
 	local posts = post_search( "post_chat_id:"..chat.id, "id" )
 %>
 	<div top>