Skip to content

Commit

Permalink
Bug fix for DM newest id being null
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Nov 26, 2013
1 parent b1ffdb6 commit 8f895c7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,14 @@ public void fetchNewestTweets(final boolean fullRefresh, final Long statusIdForP

TwitterPaging paging = null;
if (getOtherUserId() != null || !fullRefresh) {
paging = TwitterPaging.createGetNewerWithPageSize(mNewestDirectMessageId, pageSize);
if(mNewestDirectMessageId != null)
{
paging = TwitterPaging.createGetNewerWithPageSize(mNewestDirectMessageId, pageSize);
}
else
{
paging = TwitterPaging.createGetMostRecent();
}
mRefreshCallback = new TwitterFetchDirectMessagesFinishedCallback() {

@Override
Expand Down

0 comments on commit 8f895c7

Please sign in to comment.