Permalink
Browse files

Do not count your own messages as new.

  • Loading branch information...
setupminimal committed Dec 27, 2017
1 parent d03c7f5 commit 1a03aa2bb2d9a29da6a23bc9e470675fb325fe6b
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/feed/html/rollup.js
@@ -112,9 +112,9 @@ exports.create = function (api) {
// Only increment the 'new since' for items that we render on
// the feed as otherwise the 'show <n> updates message' will be
// shown on new messages that patchwork cannot render
if (canRenderMessage(msg) && (!msg.root || canRenderMessage(msg.root))) {
newSinceRefresh.add(msg.key)
unreadIds.add(msg.key)
if (canRenderMessage(msg) && msg.value.author != yourId && (!msg.root || canRenderMessage(msg.root))) {
newSinceRefresh.add(msg.key)
unreadIds.add(msg.key)
}
if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) {

0 comments on commit 1a03aa2

Please sign in to comment.