Commit c2ef6bd9 authored by Sébastien Blin's avatar Sébastien Blin

chatview: use clearReadInteractions

Change-Id: Idd93e75369fdb6de99e3d05adbb338ec40886be9
parent a81119b0
......@@ -827,10 +827,7 @@ print_text_recording(ChatView *self)
// Read interactions
if (!priv->conversation_) return;
for (const auto& it: priv->conversation_->interactions) {
if (!it.second.isRead)
(*priv->accountInfo_)->conversationModel->setInteractionRead(priv->conversation_->uid, it.first);
}
(*priv->accountInfo_)->conversationModel->clearUnreadInteractions(priv->conversation_->uid);
webkit_chat_container_print_history(
WEBKIT_CHAT_CONTAINER(priv->webkit_chat_container),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment