diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-10-17 08:48:56 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-10-17 08:49:25 -1000 |
commit | 93cedb4dbe760934ac0138bd9f087079662060b8 (patch) | |
tree | fa573973fa56dd213a6bbb2b3a94c7dcf36a9ce2 /lib | |
parent | ef1e4683dc34451caf9669062273b4e1bef84937 (diff) | |
download | patchfoo-93cedb4dbe760934ac0138bd9f087079662060b8.tar.gz patchfoo-93cedb4dbe760934ac0138bd9f087079662060b8.zip |
Fix crash on private stream
Diffstat (limited to 'lib')
-rw-r--r-- | lib/app.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) ) } |