git ssb

16+

cel / patchfoo



Commit a60ae1c1ee876443b54162f353da5b59faf81ca4

Render scat messages

cel committed on 5/18/2018, 1:39:49 AM
Parent: de5a116d784cffcbca53b4ed35f3523de6c9bd01

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -296,8 +296,9 @@
296296 case 'web-init': return this.webInit(cb)
297297 case 'web-root': return this.webRoot(cb)
298298 case 'poll': return this.poll(cb)
299299 case 'position': if (this.c.version === 'v1') return this.pollPosition(cb)
300 + case 'scat_message': return this.scat(cb)
300301 default: return this.object(cb)
301302 }
302303 }
303304
@@ -1787,4 +1788,11 @@
17871788 reason ? h('div', {innerHTML: self.render.markdown(reason, self.c.mentions)}) : ''
17881789 ), cb)
17891790 })
17901791 }
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