Skip to content
Snippets Groups Projects
Commit d15e6793 authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk
Browse files

conversation: follow API change for countInteractionsSince

Change-Id: I8e9e55951de044065e7e4540606c107246e67bb7
parent 3b62ee0f
No related branches found
No related tags found
No related merge requests found
......@@ -2778,8 +2778,11 @@ ConversationModelPimpl::addSwarmConversation(const QString& convId)
conversation.readOnly = mode == conversation::Mode::ONE_TO_ONE && membersLeft.size() == 1;
conversation.participants = participants;
conversation.mode = mode;
conversation.unreadMessages = ConfigurationManager::instance()
.countInteractions(linked.owner.id, convId, lastRead, "");
conversation.unreadMessages = ConfigurationManager::instance().countInteractions(linked.owner.id,
convId,
lastRead,
"",
accountURI);
if (mode == conversation::Mode::ONE_TO_ONE && !otherMember.isEmpty()) {
try {
conversation.confId = linked.owner.callModel->getConferenceFromURI(otherMember).id;
......
......@@ -1049,12 +1049,14 @@ public Q_SLOTS: // METHODS
uint32_t countInteractions(const QString& accountId,
const QString& conversationId,
const QString& toId,
const QString& fromId)
const QString& fromId,
const QString& authorUri)
{
return DRing::countInteractions(accountId.toStdString(),
conversationId.toStdString(),
toId.toStdString(),
fromId.toStdString());
fromId.toStdString(),
authorUri.toStdString());
}
Q_SIGNALS: // SIGNALS
void volumeChanged(const QString& device, double value);
......
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