Commit 1a03aa2bb2d9a29da6a23bc9e470675fb325fe6b
Do not count your own messages as new.
Daroc Alden committed on 12/27/2017, 6:37:17 PMParent: d03c7f58d6304a8be28e2f1640185c01a4f231d1
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