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:
@ -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
|
||||
|
Reference in New Issue
Block a user