aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render-msg.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index cd5a84f..65f1ca0 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -243,6 +243,7 @@ RenderMsg.prototype.message = function (cb) {
case 'mutual/account': return this.mutualAccount(cb)
case 'npm-publish': return this.npmPublish(cb)
case 'ssb_chess_invite': return this.chessInvite(cb)
+ case 'ssb_chess_invite_accept': return this.chessInviteAccept(cb)
case 'ssb_chess_move': return this.chessMove(cb)
default: return this.object(cb)
}
@@ -1064,3 +1065,14 @@ RenderMsg.prototype.chessInvite = function (cb) {
], cb)
})
}
+
+RenderMsg.prototype.chessInviteAccept = function (cb) {
+ var self = this
+ self.link(self.c.root, function (err, rootLink) {
+ if (err) return cb(err)
+ self.wrap([
+ h('div', h('small', '> ', rootLink)),
+ h('p', 'accepts invitation to play chess')
+ ], cb)
+ })
+}