From 3daacaa49b529f570819d8235417c15f26606b15 Mon Sep 17 00:00:00 2001 From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com> Date: Thu, 5 May 2016 15:26:15 -0400 Subject: [PATCH] im: fix message engine confirmation Change-Id: I88615fdc6441e693eac8a5cdde432d5654421515 Tuleap: #647 --- src/ringdht/ringaccount.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ringdht/ringaccount.cpp b/src/ringdht/ringaccount.cpp index c104234452..d240836ff9 100644 --- a/src/ringdht/ringaccount.cpp +++ b/src/ringdht/ringaccount.cpp @@ -1423,6 +1423,8 @@ RingAccount::sendTextMessage(const std::string& to, const std::map<std::string, dht_.listen<dht::ImMessage>(h, [wshared,token](dht::ImMessage&& msg) { if (auto this_ = wshared.lock()) { // check expected message confirmation + if (msg.id != token) + return true; auto e = this_->sentMessages_.find(msg.id); if (e == this_->sentMessages_.end()) { RING_DBG("Message not found for %llu", token); -- GitLab