git ssb

10+

Matt McKegg / patchwork



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.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