comparison 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
comparison
equal deleted inserted replaced
52:c3fabb21b6c4 53:9298b04607ae
20 20
21 local function html() 21 local function html()
22 local user = current_user() or error() 22 local user = current_user() or error()
23 local chat = Http.request.parameters.chat or error() 23 local chat = Http.request.parameters.chat or error()
24 chat = get_chat_by_id(chat) or error() 24 chat = get_chat_by_id(chat) or error()
25 chat.read(user)
25 local posts = post_search( "post_chat_id:"..chat.id, "id" ) 26 local posts = post_search( "post_chat_id:"..chat.id, "id" )
26 %> 27 %>
27 <div top> 28 <div top>
28 <h3> 29 <h3>
29 <img back onclick="back()" src="/images/arrow_back.svg"> 30 <img back onclick="back()" src="/images/arrow_back.svg">