diff options
-rw-r--r-- | lib/render-msg.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 = {} |