diff options
Diffstat (limited to 'app/src/main/java/net/lacolaco/smileessence/twitter')
-rw-r--r-- | app/src/main/java/net/lacolaco/smileessence/twitter/UserStreamListener.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/net/lacolaco/smileessence/twitter/UserStreamListener.java b/app/src/main/java/net/lacolaco/smileessence/twitter/UserStreamListener.java index bc95414f..481e093b 100644 --- a/app/src/main/java/net/lacolaco/smileessence/twitter/UserStreamListener.java +++ b/app/src/main/java/net/lacolaco/smileessence/twitter/UserStreamListener.java @@ -91,7 +91,7 @@ public class UserStreamListener implements twitter4j.UserStreamListener, Connect if (tweet.getUser().getId() == account.getUserId()) { addToHistory(new EventViewModel(EventViewModel.EnumEvent.RETWEETED, tweet.getUser(), tweet)); } - } else if (account.getCachedUser() != null && tweet.getMentions().contains(account.getCachedUser().getScreenName())) { + } else if (tweet.getMentions().contains(account.getUser().getScreenName())) { EventViewModel mentioned = new EventViewModel(EventViewModel.EnumEvent.MENTIONED, tweet.getUser(), tweet); Notificator.getInstance().publish(mentioned.getFormattedString()); } |