git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 9bd39239444aeffd84194ae531a8fa96d2fcba13

check that can render root before displaying new message display

Matt McKegg committed on 10/24/2017, 3:15:51 AM
Parent: d7f65883f67f333de2af0b5ec89d34b48f5a040e

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -100,9 +100,11 @@
100100
101101 // Only increment the 'new since' for items that we render on
102102 // the feed as otherwise the 'show <n> updates message' will be
103103 // shown on new messages that patchwork cannot render
104- if (canRenderMessage(msg)) newSinceRefresh.add(msg.key)
104+ if (canRenderMessage(msg) && (!msg.root || canRenderMessage(msg.root))) {
105+ newSinceRefresh.add(msg.key)
106+ }
105107
106108 if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) {
107109 refresh()
108110 } else {

Built with git-ssb-web