Commit 559bbba0 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

conversations: read status

Send read status when using clearUnreadInteraction

Change-Id: Idea059df94f5f259b0d22871daa2baaacc21b99c
parent d07c7934
......@@ -1148,6 +1148,10 @@ ConversationModel::clearUnreadInteractions(const QString& convId) {
if (!it.second.isRead) {
emitUpdated = true;
it.second.isRead = true;
if (owner.profileInfo.type != profile::Type::SIP) {
auto daemonId = storage::getDaemonIdByInteractionId(pimpl_->db, QString::number(it.first));
ConfigurationManager::instance().setMessageDisplayed(owner.id, pimpl_->conversations[conversationIdx].participants.front(), daemonId, 3);
}
storage::setInteractionRead(pimpl_->db, it.first);
}
});
......
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