Commit 162eb0f4 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud

chatview: fix unread text messages counter

Change-Id: I404b1d14854c16e32330f024e683db8b88a28868
parent 43ed18f0
......@@ -365,7 +365,13 @@ print_text_recording(ChatView *self)
g_return_if_fail(IS_CHAT_VIEW(self));
ChatViewPrivate *priv = CHAT_VIEW_GET_PRIVATE(self);
// Read interactions
if (!priv->conversation_) return;
for (const auto& it: priv->conversation_->interactions) {
if (it.second.status == lrc::api::interaction::Status::UNREAD)
priv->accountContainer_->info.conversationModel->setInteractionRead(priv->conversation_->uid, it.first);
}
webkit_chat_container_print_history(
WEBKIT_CHAT_CONTAINER(priv->webkit_chat_container),
*priv->accountContainer_->info.conversationModel,
......
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