Commit ecc47105 authored by Sébastien Blin's avatar Sébastien Blin

message engine: retry messages for each new detected device

Change-Id: I01337b82106959cebd3e522d2051ee64a46a14de
parent 899ef2b0
......@@ -1589,6 +1589,10 @@ JamiAccount::trackPresence(const dht::InfoHash& h, BuddyInfo& buddy)
++buddy->second.devices_cnt;
isConnected = buddy->second.devices_cnt > 0;
}
if (not expired) {
// Retry messages every time a new device announce its presence
messageEngine_.onPeerOnline(h.toString());
}
if (isConnected and not wasConnected) {
onTrackedBuddyOnline(h);
} else if (not isConnected and wasConnected) {
......@@ -1615,7 +1619,6 @@ JamiAccount::onTrackedBuddyOnline(const dht::InfoHash& contactId)
JAMI_DBG("Buddy %s online", contactId.toString().c_str());
std::string id(contactId.toString());
emitSignal<DRing::PresenceSignal::NewBuddyNotification>(getAccountID(), id, 1, "");
messageEngine_.onPeerOnline(id);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment