From 1b24fb56b48c74f1deadd5166b145b3f13bc8bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 21 Sep 2017 10:13:03 +0200 Subject: [PATCH] Include all new messages, including own. Messages sent from one's own node can be used as confirmation of the send. --- src/channel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/channel.cpp b/src/channel.cpp index c10da80..356c006 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -52,8 +52,7 @@ int NeoComm_join_channel(const char *channel_name) { /*.hash =*/ chan_hash, /*.token =*/ node.listen(chan_hash, [=](dht::ImMessage &&msg) { - if(msg.from not_eq node.getId()) - channels[s_chan_name].msgs.push_back(msg); + channels[s_chan_name].msgs.push_back(msg); return true; }), /*.msgs = */ std::vector()