clean listenTo

This commit is contained in:
Jonathan Rainville 2018-08-08 08:53:12 -04:00 committed by Pascal Precht
parent d27ecb5b20
commit d0a0fb49a7
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 10 deletions

View File

@ -71,17 +71,9 @@ function listenTo(options, callback) {
}
if (options.usePrivateKey === true) {
if (options.privateKeyID) {
subOptions.privateKeyID = options.privateKeyID;
} else {
subOptions.privateKeyID = sig;
}
subOptions.privateKeyID = options.privateKeyID || sig;
} else {
if (options.symKeyID) {
subOptions.symKeyID = options.symKeyID;
} else {
subOptions.symKeyID = symKeyID;
}
subOptions.symKeyID = symKeyID;
}
promise.filter = subscribe("messages", subOptions)