Skip to content
Snippets Groups Projects
Commit 559bbba0 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

conversations: read status

Send read status when using clearUnreadInteraction

Change-Id: Idea059df94f5f259b0d22871daa2baaacc21b99c
parent d07c7934
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment