Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Do not count your own messages as new.
Browse files Browse the repository at this point in the history
  • Loading branch information
setupminimal committed Dec 27, 2017
1 parent d03c7f5 commit 1a03aa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/feed/html/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a03aa2

Please sign in to comment.