Skip to content
Snippets Groups Projects
Commit 7e393e7f authored by Adrien Béraud's avatar Adrien Béraud
Browse files

Merge pull request #13 from shaundaley39/BugFixDHTChatSignedMsg

bug fix: in DHTChat tool, signed message should emit entire line
parents 8d92884c b205f96a
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,8 @@ main(int argc, char **argv)
std::cout << "Message publishing failed !" << std::endl;
});
} else {
dht.putSigned(room, dht::ImMessage(std::move(op)), [](bool ok) {
std::getline(iss, line);
dht.putSigned(room, dht::ImMessage(std::move(line)), [](bool ok) {
//dht.cancelPut(room, id);
if (not ok)
std::cout << "Message publishing failed !" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment