X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=d5db8efc61ea8a5795c4405d3aafa7a72ab19db9;hb=74223530641d7581c7d8f572e98eff1a01946ebd;hp=0cc6480b944121cabd86bf281abda8f7b755a091;hpb=b063001a823dfd964d72ea7bb32c642d68164d4d;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 0cc6480..d5db8ef 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1079,8 +1079,10 @@ function loadNotifications(notificationIds) { oldNotification.replaceWith(notification.show()); } else { $("#sone #notification-area").append(notification); - notification.slideDown(); - setActivity(); + if (value.id.substring(0, 5) != "local") { + notification.slideDown(); + setActivity(); + } } }); }); @@ -1237,11 +1239,6 @@ function loadNewPost(postId, soneId, recipientId, time) { newPost = $(data.post.html).addClass("hidden"); if ($(".post-author-local", newPost).text() == "true") { newPost.removeClass("new"); - (function(newPost) { - setTimeout(function() { - markPostAsKnown(newPost, false); - }, 5000); - })(newPost); } if (firstOlderPost != null) { newPost.insertBefore(firstOlderPost);