From 2e87d6f2847b51ee3828ea6fe18df2ebaf4957d3 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 12 Aug 2018 16:50:47 -0700 Subject: Show if private message author is not a recipient --- lib/render.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/render.js') diff --git a/lib/render.js b/lib/render.js index a967ee4..0a20b10 100644 --- a/lib/render.js +++ b/lib/render.js @@ -307,11 +307,14 @@ Render.prototype.idLink = function (link, cb) { return a } -Render.prototype.privateLine = function (recps, cb) { +Render.prototype.privateLine = function (recps, isAuthorRecp, cb) { var done = multicb({pluck: 1, spread: true}) var self = this var el = h('div.recps', self.lockIcon(), + !isAuthorRecp ? [ + h('span', {title: 'Author is not a recipient'}, '[!]'), ' ' + ] : '', Array.isArray(recps) ? recps.map(function (recp) { return [' ', self.idLink(recp, done())] -- cgit v1.2.3