Commit 9bd39239444aeffd84194ae531a8fa96d2fcba13
check that can render root before displaying new message display
Matt McKegg committed on 10/24/2017, 3:15:51 AMParent: d7f65883f67f333de2af0b5ec89d34b48f5a040e
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -100,9 +100,11 @@ | ||
100 | 100 | |
101 | 101 | // Only increment the 'new since' for items that we render on |
102 | 102 | // the feed as otherwise the 'show <n> updates message' will be |
103 | 103 | // 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 | + } | |
105 | 107 | |
106 | 108 | if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) { |
107 | 109 | refresh() |
108 | 110 | } else { |
Built with git-ssb-web