Don't send encrypted messages to chainpad

pull/1/head
yflory 2020-04-03 11:19:35 +02:00
parent d12fad3420
commit 902e9624e8
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,8 @@ define([], function () {
return decryptedMsg;
} catch (err) {
console.error(err);
return msg;
console.warn(peer, msg);
return false;
}
};
@ -81,6 +82,7 @@ define([], function () {
validateKey = msgObj.validateKey;
}
var message = msgIn(msgObj.user, msgObj.msg);
if (!message) { return; }
verbose(message);