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

pre-drt: try to fetch even if there is nothing to sync from our side

Because DRT will only connect to a subset of people, applications
without the DRT will have to connect even if they don't need to send
data (but they will receive the informations).

Change-Id: I721513658fe36421109cc3512f4ea8457c73dbeb
parent c6cd037b
Branches
Tags
No related merge requests found
...@@ -1752,8 +1752,7 @@ ConversationModule::needsSyncingWith(const std::string& memberUri, const std::st ...@@ -1752,8 +1752,7 @@ ConversationModule::needsSyncingWith(const std::string& memberUri, const std::st
for (const auto& [key, ci] : pimpl_->convInfos_) { for (const auto& [key, ci] : pimpl_->convInfos_) {
auto it = pimpl_->conversations_.find(key); auto it = pimpl_->conversations_.find(key);
if (it != pimpl_->conversations_.end() && it->second) { if (it != pimpl_->conversations_.end() && it->second) {
if (!it->second->isRemoving() && it->second->isMember(memberUri, false) if (!it->second->isRemoving() && it->second->isMember(memberUri, false))
&& it->second->needsFetch(deviceId))
return true; return true;
} else if (!ci.removed } else if (!ci.removed
&& std::find(ci.members.begin(), ci.members.end(), memberUri) && std::find(ci.members.begin(), ci.members.end(), memberUri)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment