remove deleted comment event from the timeline

stable
Juanfran 2015-06-12 11:49:27 +02:00
parent 433ab9f1cb
commit de66acf48c
2 changed files with 13 additions and 0 deletions

View File

@ -48,6 +48,9 @@ class UserTimelineService extends taiga.Service
return false
if timeline.get("data").get("comment_deleted")
return false
if !@._isValidEvent(timeline.get('event_type'))
return false

View File

@ -112,6 +112,16 @@ describe "tgUserTimelineService", ->
"name": "xx"
}
}
},
{ # invalid item
event_type: "xx.us.change",
data: {
comment_deleted: true,
values_diff: {
"status": "xx",
"subject": "xx"
}
}
}
]