fixed problem with unread mentions and reposts

This commit is contained in:
jeena 2013-04-21 12:21:29 +02:00
parent 2b8782bed9
commit 9a999ba2cc

View file

@ -83,8 +83,11 @@ function(HostApp, Timeline, URI, Paths, Core) {
Mentions.prototype.updateLatestMentionRead = function() { Mentions.prototype.updateLatestMentionRead = function() {
var status = this.body.firstChild.status; for (var i = 0; i < this.body.childNodes.length; i++) {
var status = this.body.childNodes[i].status;
if (!status.__repost) {
if (status && status.type == "https://tent.io/types/post/status/v0.1.0") { if (status && status.type == "https://tent.io/types/post/status/v0.1.0") {
var url = URI(Paths.mkApiRootPath("/profile/" + encodeURIComponent("https://tent.io/types/info/cursor/v0.1.0"))); var url = URI(Paths.mkApiRootPath("/profile/" + encodeURIComponent("https://tent.io/types/info/cursor/v0.1.0")));
@ -103,6 +106,10 @@ function(HostApp, Timeline, URI, Paths, Core) {
Paths.getURL(url.toString(), "PUT", callback, JSON.stringify(body)); Paths.getURL(url.toString(), "PUT", callback, JSON.stringify(body));
} }
break;
}
}
} }