aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-22 14:48:47 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-27 16:27:14 -1000
commitb0cddb46f0d273976872352c328d5c849408334a (patch)
tree5423ff26126f92fe590bcf6f7d4360df8aa24c11
parentf81b065d0bbbad93c14efff60632681ffc73062e (diff)
downloadpatchfoo-b0cddb46f0d273976872352c328d5c849408334a.tar.gz
patchfoo-b0cddb46f0d273976872352c328d5c849408334a.zip
Render chess invite accept
-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)
+ })
+}