Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kontalk devteam committed Jan 29, 2016
2 parents 61214fb + 693a9de commit a00ea66
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/org/kontalk/ui/ComposeMessageFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -3018,8 +3018,10 @@ protected synchronized void onQueryComplete(int token, Object cookie, Cursor cur
}
else {
// first query - use last id of this new cursor
cursor.moveToFirst();
mLastId = Conversation.getMessageId(cursor);
if (cursor.getCount() > 0) {
cursor.moveToFirst();
mLastId = Conversation.getMessageId(cursor);
}

// see if we have to scroll to a specific message
int newSelectionPos = -1;
Expand Down

0 comments on commit a00ea66

Please sign in to comment.