aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index e7de9e3..e4633e5 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -297,6 +297,7 @@ RenderMsg.prototype.message = function (cb) {
case 'web-root': return this.webRoot(cb)
case 'poll': return this.poll(cb)
case 'position': if (this.c.version === 'v1') return this.pollPosition(cb)
+ case 'scat_message': return this.scat(cb)
default: return this.object(cb)
}
}
@@ -1788,3 +1789,10 @@ RenderMsg.prototype.pollPosition = function (cb) {
), cb)
})
}
+
+RenderMsg.prototype.scat = function (cb) {
+ this.wrapMini([
+ 'chats ',
+ h('q', String(this.c.text))
+ ], cb)
+}