Commit e3c9f612 authored by Sébastien Blin's avatar Sébastien Blin

conversationmodel: update path only for swarm

as awaiting host will not return any path for legacy, causing
the interaction to not update

GitLab: jami-client-qt#455
Change-Id: Icbf49dcab5a4dff030f380dcecd40c1919f89146
parent c2cf086b
......@@ -3888,7 +3888,8 @@ ConversationModelPimpl::updateTransferStatus(const QString& fileId,
if (conversationIdx < 0) {
return false;
}
if (conversations[conversationIdx].mode == conversation::Mode::NON_SWARM) {
auto& conversation = conversations[conversationIdx];
if (conversation.isLegacy()) {
storage::updateInteractionStatus(db, interactionId, newStatus);
}
bool emitUpdated = false;
......@@ -3900,7 +3901,9 @@ ConversationModelPimpl::updateTransferStatus(const QString& fileId,
if (it != interactions.end()) {
emitUpdated = true;
it->second.status = newStatus;
it->second.body = info.path;
if (conversation.isSwarm()) {
it->second.body = info.path;
}
itCopy = it->second;
}
}
......
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