Skip to content
Snippets Groups Projects
Commit 3daacaa4 authored by Edric Milaret's avatar Edric Milaret Committed by Alexandre Lision
Browse files

im: fix message engine confirmation

Change-Id: I88615fdc6441e693eac8a5cdde432d5654421515
Tuleap: #647
parent 38068d43
Branches
Tags
No related merge requests found
...@@ -1423,6 +1423,8 @@ RingAccount::sendTextMessage(const std::string& to, const std::map<std::string, ...@@ -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) { dht_.listen<dht::ImMessage>(h, [wshared,token](dht::ImMessage&& msg) {
if (auto this_ = wshared.lock()) { if (auto this_ = wshared.lock()) {
// check expected message confirmation // check expected message confirmation
if (msg.id != token)
return true;
auto e = this_->sentMessages_.find(msg.id); auto e = this_->sentMessages_.find(msg.id);
if (e == this_->sentMessages_.end()) { if (e == this_->sentMessages_.end()) {
RING_DBG("Message not found for %llu", token); RING_DBG("Message not found for %llu", token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment