git ssb

16+

cel / patchfoo



Commit 8fd6613c73b3cc03e594c3a4ad89e3303cfd5131

Fix rendering non-poll position messages

cel committed on 7/27/2018, 9:08:30 PM
Parent: 4f86d04add9a78d06f582d0129f07027154e1d6a

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -298,9 +298,9 @@
298298 case 'line-comment': return this.lineComment(cb)
299299 case 'web-init': return this.webInit(cb)
300300 case 'web-root': return this.webRoot(cb)
301301 case 'poll': return this.poll(cb)
302- case 'position': if (this.c.version === 'v1') return this.pollPosition(cb)
302 + case 'position': return this.position(cb)
303303 case 'scat_message': return this.scat(cb)
304304 case 'share': return this.share(cb)
305305 case 'tag': return this.tag(cb)
306306 case 'edit': return this.edit(cb)
@@ -1799,8 +1799,13 @@
17991799 ) : h('div', 'unknown poll type')
18001800 ), cb)
18011801 }
18021802
1803 +RenderMsg.prototype.position = function (cb) {
1804 + if (this.c.version === 'v1') return this.pollPosition(cb)
1805 + return this.object(cb)
1806 +}
1807 +
18031808 RenderMsg.prototype.pollPosition = function (cb) {
18041809 var self = this
18051810 var details = self.c.pollDetails || self.c.details || self.c
18061811 var reason = self.c.reason || ''

Built with git-ssb-web