Commit 54068968 authored by Ming Rui Zhang's avatar Ming Rui Zhang

conversation: check profile type when setting interaction read status

Change-Id: Iff25f1884385bd26e98c5be80b73579e42352282
parent 68a8f179
......@@ -1124,7 +1124,9 @@ ConversationModel::setInteractionRead(const QString& convId,
if (emitUpdated) {
pimpl_->dirtyConversations = {true, true};
auto daemonId = storage::getDaemonIdByInteractionId(pimpl_->db, QString::number(interactionId));
ConfigurationManager::instance().setMessageDisplayed(owner.id, pimpl_->conversations[conversationIdx].participants.front(), daemonId, 3);
if (owner.profileInfo.type != profile::Type::SIP) {
ConfigurationManager::instance().setMessageDisplayed(owner.id, pimpl_->conversations[conversationIdx].participants.front(), daemonId, 3);
}
storage::setInteractionRead(pimpl_->db, interactionId);
emit interactionStatusUpdated(convId, interactionId, itCopy);
emit pimpl_->behaviorController.newReadInteraction(owner.id, convId, interactionId);
......
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