Check all statuses in timeline for old retweets.

This will fix the problem of retweets showing up again and again.
This commit is contained in:
Roger Braun 2016-12-08 12:45:09 +01:00
parent f7e9f17e4c
commit 7978ffeb1d

View file

@ -203,7 +203,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
let retweet let retweet
// If the retweeted status is already there, don't add the retweet // If the retweeted status is already there, don't add the retweet
// to the timeline. // to the timeline.
if (timeline && find(timelineObject.visibleStatuses, {id: retweetedStatus.id})) { if (timeline && find(timelineObject.statuses, {id: retweetedStatus.id})) {
// Already have it visible, don't add to timeline, don't show. // Already have it visible, don't add to timeline, don't show.
retweet = addStatus(status, false, false) retweet = addStatus(status, false, false)
} else { } else {