Commit d844bc0c8c3b568c6dcd4e3b19afda5b97e22231
fix highlighting of root messages as new
fixes #596Matt McKegg committed on 9/15/2017, 3:29:14 AM
Parent: 88e355bf1c958e3361645fd8f0682f252a313b68
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -179,9 +179,13 @@ | ||
179 | 179 | previousId = msg.key |
180 | 180 | return result |
181 | 181 | }) |
182 | 182 | |
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 | + | |
184 | 188 | if (!renderedMessage) return h('div') |
185 | 189 | if (lastBumpType) { |
186 | 190 | var bumps = lastBumpType === 'vote' |
187 | 191 | ? getLikeAuthors(groupedBumps[lastBumpType]) |
Built with git-ssb-web