From 8136c551b5cc4d438f3b1bb4bfe897c2637a0ea8 Mon Sep 17 00:00:00 2001 From: Marina Kukso Date: Sun, 11 Mar 2018 16:23:47 -1000 Subject: allow loading before ssb-private --- lib/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index 6909846..4a4d696 100644 --- a/lib/app.js +++ b/lib/app.js @@ -51,7 +51,7 @@ function App(sbot, config) { this.getMsgOoo = memo({cache: this.msgCache}, this.getMsgOoo) this.getAbout = memo({cache: this.aboutCache = lru(500)}, this._getAbout.bind(this)) - this.unboxContent = memo({cache: lru(100)}, sbot.private.unbox) + this.unboxContent = memo({cache: lru(100)}, function(value, cb){sbot.private.unbox(value, cb)}) this.reverseNameCache = lru(500) this.reverseEmojiNameCache = lru(500) this.getBlobSize = memo({cache: this.blobSizeCache = lru(100)}, -- cgit v1.2.3