pubKey was being displayed incorrectly

This commit is contained in:
Richard Ramos 2018-11-26 22:27:55 -04:00
parent 821eeb4174
commit 3d6b97490b
1 changed files with 1 additions and 2 deletions

View File

@ -152,7 +152,6 @@ ui.logEntry(`Rejoining Channels....`);
if (JSON.parse(data.payload)[1][1] === 'content/json') { if (JSON.parse(data.payload)[1][1] === 'content/json') {
handleProtocolMessages(data.username, data); handleProtocolMessages(data.username, data);
} else { } else {
ui.logEntry(data.payload);
channels.addMessage(data.username, msg, data.data.sig, data.username) channels.addMessage(data.username, msg, data.data.sig, data.username)
} }
}) })
@ -211,7 +210,7 @@ ui.logEntry(`Rejoining Channels....`);
const channel = channels.getCurrentChannel(); const channel = channels.getCurrentChannel();
if(channel.pubKey){ if(channel.pubKey){
status.sendMessage(channel.pubKey, cmd); status.sendMessage(channel.pubKey, cmd);
channels.addMessage(channel.name, cmd, pubKey, userName); channels.addMessage(channel.name, cmd, channel.pubKey, userName);
} else { } else {
status.sendMessage(channel.name, cmd); status.sendMessage(channel.name, cmd);
} }