git ssb

10+

Matt McKegg / patchwork



Commit 1a03aa2bb2d9a29da6a23bc9e470675fb325fe6b

Do not count your own messages as new.

Daroc Alden committed on 12/27/2017, 6:37:17 PM
Parent: d03c7f58d6304a8be28e2f1640185c01a4f231d1

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -111,11 +111,11 @@
111111
112112 // Only increment the 'new since' for items that we render on
113113 // the feed as otherwise the 'show <n> updates message' will be
114114 // 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)
118118 }
119119
120120 if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) {
121121 refresh()

Built with git-ssb-web