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:
parent
7b4321328a
commit
1b24fb56b4
@ -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>()
|
||||
|
Loading…
Reference in New Issue
Block a user