Include all new messages, including own.

Messages sent from one's own node can be used as confirmation of the
send.
This commit is contained in:
Nicolás Ortega Froysa 2017-09-21 10:13:03 +02:00
parent 7b4321328a
commit 1b24fb56b4
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -52,8 +52,7 @@ int NeoComm_join_channel(const char *channel_name) {
/*.hash =*/ chan_hash,
/*.token =*/ node.listen<dht::ImMessage>(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<dht::ImMessage>()