Commit 9fb7439fdc58c506b0f6281b47448336512e12dc
Set recps in composer if message is private but has no recps
cel committed on 11/27/2017, 10:59:54 PMParent: f51983b5e78e1dd23ae6482b97679a5618560429
Files changed
lib/serve.js | changed |
lib/serve.js | ||
---|---|---|
@@ -1014,8 +1014,11 @@ | ||
1014 | 1014 … | key: id, value: {content: false}} |
1015 | 1015 … | if (err) return self.respond(500, err.stack || err) |
1016 | 1016 … | var rootContent = rootMsg && rootMsg.value && rootMsg.value.content |
1017 | 1017 … | var recps = rootContent && rootContent.recps |
1018 … | + || (rootMsg.value.private ? | |
1019 … | + ? [rootMsg.value.author, self.app.sbot.id].filter(uniques()) | |
1020 … | + : undefined) | |
1018 | 1021 … | var threadRootId = rootContent && rootContent.root || id |
1019 | 1022 … | var channel |
1020 | 1023 … | |
1021 | 1024 … | pull( |
Built with git-ssb-web