From 9fb7439fdc58c506b0f6281b47448336512e12dc Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 27 Nov 2017 14:59:27 -0800 Subject: Set recps in composer if message is private but has no recps --- lib/serve.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/serve.js b/lib/serve.js index 47bc7c2..e86de59 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1015,6 +1015,9 @@ Serve.prototype.id = function (id, path) { if (err) return self.respond(500, err.stack || err) var rootContent = rootMsg && rootMsg.value && rootMsg.value.content var recps = rootContent && rootContent.recps + || (rootMsg.value.private ? + ? [rootMsg.value.author, self.app.sbot.id].filter(uniques()) + : undefined) var threadRootId = rootContent && rootContent.root || id var channel -- cgit v1.2.3