mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 05:38:52 +00:00
clean listenTo
This commit is contained in:
parent
b4acbfe740
commit
5ca0e2b592
@ -71,18 +71,10 @@ function listenTo(options, callback) {
|
||||
}
|
||||
|
||||
if (options.usePrivateKey === true) {
|
||||
if (options.privateKeyID) {
|
||||
subOptions.privateKeyID = options.privateKeyID;
|
||||
} else {
|
||||
subOptions.privateKeyID = sig;
|
||||
}
|
||||
} else {
|
||||
if (options.symKeyID) {
|
||||
subOptions.symKeyID = options.symKeyID;
|
||||
subOptions.privateKeyID = options.privateKeyID || sig;
|
||||
} else {
|
||||
subOptions.symKeyID = symKeyID;
|
||||
}
|
||||
}
|
||||
|
||||
promise.filter = subscribe("messages", subOptions)
|
||||
.on('data', function (result) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user