]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1541123 - "1 new change since last visit" shown for the change I just submitted
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 4 Apr 2019 20:58:59 +0000 (16:58 -0400)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 20:58:59 +0000 (16:58 -0400)
extensions/BugModal/web/bug_modal.js

index 3fe9cdcc1d216b82479ced3f4f94fa3dce8c8570..ad8d3ba749ae23e55b7e84f75436542ee84ee6f6 100644 (file)
@@ -1392,8 +1392,9 @@ function show_new_changes_indicator() {
 
         const last_visit_ts = new Date(data[0].last_visit_ts);
         const new_changes = [...document.querySelectorAll('main .change-set')].filter($change => {
-            // Exclude hidden CC changes
+            // Exclude hidden CC changes and the user's own changes
             return $change.clientHeight > 0 &&
+                Number($change.querySelector('.email').getAttribute('data-user-id')) !== BUGZILLA.user.id &&
                 new Date($change.querySelector('[data-time]').getAttribute('data-time') * 1000) > last_visit_ts;
         });