From 624dd9a1b9118f2d1a2f079b046bee1ba0656974 Mon Sep 17 00:00:00 2001 From: jeena Date: Wed, 10 Apr 2013 17:17:09 +0200 Subject: [PATCH] fixed no notification on mention scroll --- WebKit/scripts/controller/Mentions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WebKit/scripts/controller/Mentions.js b/WebKit/scripts/controller/Mentions.js index 7f3212d..0cf8314 100644 --- a/WebKit/scripts/controller/Mentions.js +++ b/WebKit/scripts/controller/Mentions.js @@ -48,8 +48,8 @@ function(HostApp, Timeline, URI, Paths, Core) { name = profile["https://tent.io/types/info/basic/v0.1.0"].name; } - HostApp.notificateUserAboutMention(status.content.text, name || status.entity, status.id, status.entity); - }; + if(!append) HostApp.notificateUserAboutMention(status.content.text, name || status.entity, status.id, status.entity); + } } this.is_not_init = true; @@ -82,6 +82,7 @@ function(HostApp, Timeline, URI, Paths, Core) { } Mentions.prototype.updateLatestMentionRead = function() { + var status = this.body.firstChild.status; if (status && status.type == "https://tent.io/types/post/status/v0.1.0") {