Skip to content

Commit bbf6007

Browse files
committed
message construct
1 parent 9b31eb3 commit bbf6007

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/comms/isocket-comms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class ISocketComms extends EventEmitter {
108108
const replyObj = JSON.parse(reply.data)
109109

110110
if(replyObj.enc && replyObj.sig){
111-
let msg = new Message()
111+
let msg = new Message({})
112112
msg.fromJSON(replyObj)
113113

114114
let content = await msg.decrypt(this.party.privateIdentity())

src/service/middleware/pre/decrypt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = class Decrypt extends IMiddleware {
3838
context.debug('input', context.input, typeof context.input)
3939

4040

41-
const msg = new Message()
41+
const msg = new Message({})
4242
msg.fromJSON(context.input)
4343
context.debug('privateIdentity', context.party.privateIdentity.id)
4444

0 commit comments

Comments
 (0)