From d4dfcf4d602dcdaa977d616bcda2dd7a4b8a25c4 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 5 Dec 2019 12:10:04 -1000 Subject: Make "previous" link in raw mode preserve raw and ooo modes --- lib/render.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/render.js') diff --git a/lib/render.js b/lib/render.js index fc2407e..1aec728 100644 --- a/lib/render.js +++ b/lib/render.js @@ -368,7 +368,7 @@ Render.prototype.msgIdLink = function (id, cb) { var a = h('a', {href: self.toUrl(id)}, id) self.app.getMsgDecrypted(id, function (err, msg) { if (err) return el.appendChild(u.renderError(err)), cb() - var renderMsg = new RenderMsg(self, self.app, msg, {wrap: false}) + var renderMsg = new RenderMsg(self, self.app, msg, {wrap: false, serve: self.serve}) renderMsg.title(function (err, title) { if (err) return el.appendChild(u.renderError(err)), cb() a.childNodes[0].textContent = title @@ -383,7 +383,7 @@ Render.prototype.phMsgLink = function (msg) { return u.readNext(function (cb) { self.app.unboxMsg(msg, function (err, msg) { if (err) return cb(err) - var renderMsg = new RenderMsg(self, self.app, msg, {wrap: false}) + var renderMsg = new RenderMsg(self, self.app, msg, {wrap: false, serve: self.serve}) renderMsg.title(function (err, title) { if (err) return cb(err) cb(null, ph('a', {href: self.toUrl(msg.key)}, u.escapeHTML(title))) -- cgit v1.2.3