From c5bbd21e1c125f4012e2f88f485816a438ae62a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Thu, 1 Dec 2022 14:53:47 -0500 Subject: [PATCH] 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 --- src/jamidht/conversation_module.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jamidht/conversation_module.cpp b/src/jamidht/conversation_module.cpp index 50a6ddea85..5cc3e77a8d 100644 --- a/src/jamidht/conversation_module.cpp +++ b/src/jamidht/conversation_module.cpp @@ -1752,8 +1752,7 @@ ConversationModule::needsSyncingWith(const std::string& memberUri, const std::st for (const auto& [key, ci] : pimpl_->convInfos_) { auto it = pimpl_->conversations_.find(key); if (it != pimpl_->conversations_.end() && it->second) { - if (!it->second->isRemoving() && it->second->isMember(memberUri, false) - && it->second->needsFetch(deviceId)) + if (!it->second->isRemoving() && it->second->isMember(memberUri, false)) return true; } else if (!ci.removed && std::find(ci.members.begin(), ci.members.end(), memberUri) -- GitLab