merolion / twimight

Automatically exported from code.google.com/p/twimight
0 stars 0 forks source link

Knowing if a downloaded Tweet has been retweeted by the user #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In TwitterSyncService, method getTweetContentValues() (line 388), a Tweet is 
always marked as not retweeted:
    cv.put(Tweets.COL_RETWEETED, 0);

However, there is a simple way of knowing if the user retweeted a certain 
status:
    tweet.isRetweetedByMe().

Therefore I suggest updating the line to:
    cv.put(Tweets.COL_RETWEETED, tweet.isRetweetedByMe() ? 1 : 0);

Original issue reported on code.google.com by pcalinkin on 23 May 2014 at 2:34