Skip to content
Snippets Groups Projects
Commit c96adcc8 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

transfer_channel_interface: fix sending of own profile

This was a regression caused by 11c47a98
where the profile was not sent in multi-device mode.

Change-Id: Icb5b3d9e8fafef84374bb2253f67879286d3f893
parent dccbae21
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,13 @@ TransferChannelHandler::onReady(const std::shared_ptr<dht::crypto::Certificate>&
auto idstr = name.substr(16);
if (idstr == "profile.vcf") {
// If it's a profile from sync
acc->dataTransfer()->onIncomingProfile(channel);
if (!channel->isInitiator()) {
acc->dataTransfer()->onIncomingProfile(channel);
} else {
// If it's a profile from sync
std::string path = fmt::format("{}/profile.vcf", idPath_);
acc->dataTransfer()->transferFile(channel, idstr, "", path);
}
return;
}
......
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