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,17 +71,9 @@ function listenTo(options, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.usePrivateKey === true) {
|
if (options.usePrivateKey === true) {
|
||||||
if (options.privateKeyID) {
|
subOptions.privateKeyID = options.privateKeyID || sig;
|
||||||
subOptions.privateKeyID = options.privateKeyID;
|
|
||||||
} else {
|
|
||||||
subOptions.privateKeyID = sig;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (options.symKeyID) {
|
subOptions.symKeyID = symKeyID;
|
||||||
subOptions.symKeyID = options.symKeyID;
|
|
||||||
} else {
|
|
||||||
subOptions.symKeyID = symKeyID;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
promise.filter = subscribe("messages", subOptions)
|
promise.filter = subscribe("messages", subOptions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user