git ssb

16+

cel / patchfoo



Commit 9fb7439fdc58c506b0f6281b47448336512e12dc

Set recps in composer if message is private but has no recps

cel committed on 11/27/2017, 10:59:54 PM
Parent: f51983b5e78e1dd23ae6482b97679a5618560429

Files changed

lib/serve.jschanged
lib/serve.jsView
@@ -1014,8 +1014,11 @@
10141014 key: id, value: {content: false}}
10151015 if (err) return self.respond(500, err.stack || err)
10161016 var rootContent = rootMsg && rootMsg.value && rootMsg.value.content
10171017 var recps = rootContent && rootContent.recps
1018 + || (rootMsg.value.private ?
1019 + ? [rootMsg.value.author, self.app.sbot.id].filter(uniques())
1020 + : undefined)
10181021 var threadRootId = rootContent && rootContent.root || id
10191022 var channel
10201023
10211024 pull(

Built with git-ssb-web