1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Mark the conversation as seen

This commit is contained in:
2020-06-18 14:33:43 +02:00
parent e7de23e995
commit bfeea42828
3 changed files with 32 additions and 11 deletions

View File

@ -172,10 +172,10 @@ pub fn refresh_list(r: &mut HttpRequestHandler) -> RequestResult {
r.forbidden(format!("Your do not belongs to conversation {} !", conv_id))?;
}
let msgs_conv = conversations_helper::get_last_messages(conv_id as u64, 10)?;
list.insert(conv_id as u64, msgs_conv);
let list_conv = conversations_helper::get_last_messages(conv_id as u64, 10)?;
list.insert(conv_id as u64, list_conv);
//TODO : mark user seen
conversations_helper::mark_user_seen(conv_id as u64, r.user_id()?)?;
}
// TODO : Check for refresh of already initialized conversations