From 9914643b57307ebf026047fad554119165e99895 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 10 May 2020 12:58:15 -0400 Subject: Fix don't show duplicate branch/root link --- lib/render-msg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/render-msg.js b/lib/render-msg.js index c1dd38b..20b9e15 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -437,9 +437,9 @@ RenderMsg.prototype.post = function (cb) { }) } var done = multicb({pluck: 1, spread: true}) - if (self.c.root === self.c.branch) done()() - else self.link(self.c.root, done()) var branches = u.toArray(self.c.branch) + if (branches.length === 1 && self.c.root === branches[0]) done()() + else self.link(self.c.root, done()) self.links(branches, done()) self.links(self.c.fork, done()) var replyIById = {} -- cgit v1.2.3