aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-17 08:48:56 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-17 08:49:25 -1000
commit93cedb4dbe760934ac0138bd9f087079662060b8 (patch)
treefa573973fa56dd213a6bbb2b3a94c7dcf36a9ce2
parentef1e4683dc34451caf9669062273b4e1bef84937 (diff)
downloadpatchfoo-93cedb4dbe760934ac0138bd9f087079662060b8.tar.gz
patchfoo-93cedb4dbe760934ac0138bd9f087079662060b8.zip
Fix crash on private stream
-rw-r--r--lib/app.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/app.js b/lib/app.js
index 53e6291..b0b92ee 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -605,11 +605,10 @@ App.prototype.streamPrivate = function (opts) {
if (this.sbot.private.read) return this.filter(this.sbot.private, opts, {})
return pull(
- this.createLogStream(u.mergeOpts(opts, {limit: null})),
+ this.createLogStream(u.mergeOpts(opts)),
pull.filter(u.isMsgEncrypted),
this.unboxMessages(),
- pull.filter(u.isMsgReadable),
- pull.take(opts.limit)
+ pull.filter(u.isMsgReadable)
)
}