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:
parent
5a5ef4711d
commit
af09269d81
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue