Commit a60ae1c1ee876443b54162f353da5b59faf81ca4
Render scat messages
cel committed on 5/18/2018, 1:39:49 AMParent: de5a116d784cffcbca53b4ed35f3523de6c9bd01
Files changed
lib/render-msg.js | changed |
lib/render-msg.js | |||
---|---|---|---|
@@ -296,8 +296,9 @@ | |||
296 | 296 … | case 'web-init': return this.webInit(cb) | |
297 | 297 … | case 'web-root': return this.webRoot(cb) | |
298 | 298 … | case 'poll': return this.poll(cb) | |
299 | 299 … | case 'position': if (this.c.version === 'v1') return this.pollPosition(cb) | |
300 … | + case 'scat_message': return this.scat(cb) | ||
300 | 301 … | default: return this.object(cb) | |
301 | 302 … | } | |
302 | 303 … | } | |
303 | 304 … | ||
@@ -1787,4 +1788,11 @@ | |||
1787 | 1788 … | reason ? h('div', {innerHTML: self.render.markdown(reason, self.c.mentions)}) : '' | |
1788 | 1789 … | ), cb) | |
1789 | 1790 … | }) | |
1790 | 1791 … | } | |
1792 … | + | ||
1793 … | +RenderMsg.prototype.scat = function (cb) { | ||
1794 … | + this.wrapMini([ | ||
1795 … | + 'chats ', | ||
1796 … | + h('q', String(this.c.text)) | ||
1797 … | + ], cb) | ||
1798 … | +} |
Built with git-ssb-web