readded notifications

This commit is contained in:
jeena 2013-09-09 01:37:41 +02:00
parent 037f382d72
commit 8a1e17d41c

View file

@ -36,22 +36,17 @@ function(HostApp, Timeline, URI, APICalls, Core) {
Mentions.prototype.newStatus = function(statuses, append) { Mentions.prototype.newStatus = function(statuses, append) {
Timeline.prototype.newStatus.call(this, statuses, append); Timeline.prototype.newStatus.call(this, statuses, append);
/*
if(this.is_not_init) { if(this.is_not_init) {
for (var i = 0; i < statuses.posts.length; i++) {
var status = statuses.posts[i];
var name = bungloo.cache.profiles[status.entity] ? bungloo.cache.profiles[status.entity].name : status.entity
for (var i = 0; i < statuses.length; i++) { if(!append) HostApp.notificateUserAboutMention(status.content.text, name, status.id, status.entity);
var status = statuses[i];
var name;
var profile = this.cache.profiles.getItem(status.entity);
if(profile) {
name = profile["https://tent.io/types/info/basic/v0.1.0"].name;
}
if(!append) HostApp.notificateUserAboutMention(status.content.text, name || status.entity, status.id, status.entity);
} }
} }
*/
this.is_not_init = true; this.is_not_init = true;
} }