Skip to content

Commit 0202734

Browse files
committed
more NamedNode
1 parent 17005e6 commit 0202734

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/chat/chatLogic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class ChatChannel {
8888
const privateKey = await getPrivateKey(me) // me.uri)
8989
// const privateKey0 = 'a11bc5d2eee6cdb3b37f5473a712cad905ccfb13fb2ccdbf1be0a1ac4fdc7d2a'
9090
// const pubKey0 = '023a9da707bee1302f66083c9d95673ff969b41607a66f52686fa774d64ceb87'
91-
const pubKey = getPublicKey(me.uri)
91+
const pubKey = getPublicKey(me)
9292

9393
const sig = signMsg(msg, privateKey)
9494
/* const verify = verifySignature(sig, msg, pubKey) // alain to remove

src/chat/message.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function renderMessageRow (channelObject, message, fresh, options, userCo
134134

135135
// signed message, get public key and check signature
136136
else {
137-
getPublicKey(creator.uri).then(publicKey => {
137+
getPublicKey(creator).then(publicKey => {
138138
debug.log(creator.uri + '\n' + msg.created + '\n' + msg.id + '\n' + publicKey)
139139
if (!publicKey) {
140140
// TODO try to recreate the publicKey

0 commit comments

Comments
 (0)