1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-01 06:05:25 +02:00

conversationmodel: fix multi-device file transfers

The current logic for handling received messages assumes that files sent
by the user don't need to be downloaded. However, this assumption is
incorrect when the user's account is present on multiple devices.

GitLab: #2069
Change-Id: I4e6a53389d736aec4aa86cd39862b7905b9b09ad
This commit is contained in:
François-Simon Fauteux-Chapleau 2025-06-26 15:30:20 -04:00
parent 5a5ef4711d
commit af09269d81

View file

@ -2391,7 +2391,7 @@ ConversationModelPimpl::slotMessageReceived(const QString& accountId,
}
Q_EMIT linked.newInteraction(conversationId, msgId, msg);
Q_EMIT linked.modelChanged();
if (msg.transferStatus == interaction::TransferStatus::TRANSFER_AWAITING_HOST && updateUnread) {
if (msg.transferStatus == interaction::TransferStatus::TRANSFER_AWAITING_HOST) {
handleIncomingFile(conversationId,
msgId,
QString(message.body.value("totalSize")).toInt());