Commit ef4158cecbf339ae1458111a2ff1218a55bef5f6
Merge pull request #709 from setupminimal/ignore-own-replies
Do not count your own messages as new.Matt McKegg authored on 12/27/2017, 11:19:23 PM
GitHub committed on 12/27/2017, 11:19:23 PM
Parent: d03c7f58d6304a8be28e2f1640185c01a4f231d1
Parent: 1a03aa2bb2d9a29da6a23bc9e470675fb325fe6b
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -111,11 +111,11 @@ | ||
111 | 111 … | |
112 | 112 … | // Only increment the 'new since' for items that we render on |
113 | 113 … | // the feed as otherwise the 'show <n> updates message' will be |
114 | 114 … | // shown on new messages that patchwork cannot render |
115 | - if (canRenderMessage(msg) && (!msg.root || canRenderMessage(msg.root))) { | |
116 | - newSinceRefresh.add(msg.key) | |
117 | - unreadIds.add(msg.key) | |
115 … | + if (canRenderMessage(msg) && msg.value.author != yourId && (!msg.root || canRenderMessage(msg.root))) { | |
116 … | + newSinceRefresh.add(msg.key) | |
117 … | + unreadIds.add(msg.key) | |
118 | 118 … | } |
119 | 119 … | |
120 | 120 … | if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) { |
121 | 121 … | refresh() |
Built with git-ssb-web