git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit d844bc0c8c3b568c6dcd4e3b19afda5b97e22231

fix highlighting of root messages as new

fixes #596
Matt McKegg committed on 9/15/2017, 3:29:14 AM
Parent: 88e355bf1c958e3361645fd8f0682f252a313b68

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -179,9 +179,13 @@
179179 previousId = msg.key
180180 return result
181181 })
182182
183- var renderedMessage = api.message.html.render(item, {inContext: true})
183+ var renderedMessage = api.message.html.render(item, {
184+ inContext: true,
185+ priority: highlightItems.has(item.key) ? 2 : 0
186+ })
187+
184188 if (!renderedMessage) return h('div')
185189 if (lastBumpType) {
186190 var bumps = lastBumpType === 'vote'
187191 ? getLikeAuthors(groupedBumps[lastBumpType])

Built with git-ssb-web