aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index f351039..89a5f90 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -188,10 +188,12 @@ RenderMsg.prototype.sync = function (cb) {
RenderMsg.prototype.recpsLine = function (cb) {
if (!this.value.private) return cb(), ''
var author = this.value.author
- var recpsNotSelf = u.toArray(this.c.recps).filter(function (link) {
+ var recps = u.toArray(this.c.recps)
+ var recpsNotAuthor = recps.filter(function (link) {
return u.linkDest(link) !== author
})
- return this.render.privateLine(recpsNotSelf, cb)
+ var isAuthorRecp = recpsNotAuthor.length < recps.length
+ return this.render.privateLine(recpsNotAuthor, isAuthorRecp, cb)
}
RenderMsg.prototype.recpsIds = function () {