Skip to content
Snippets Groups Projects
Commit 710f7135 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Andreas Traczyk
Browse files

conversationmodel: send file to create contact


The sendFile() method contains contradictory code: "if
(peerUri.empty()) return" forbids sending files to non contacts, but
a line later "pimpl_->sendContactRequest(peerUri)" is called even if
this line can only be executed in the case where peerUri is already a
contact.

In this commit we allow sending files to non contacts (this makes
sense if peer has already accepted the sender as contact), and
protect it with the same synchronization mechanism as af04c34f.

Change-Id: I25432fcfdd3f46068add27009a77108ac75d3124
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent b3c8ce38
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment