Skip to content

Commit

Permalink
fixup! Fix jumping to last seen position.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed May 11, 2020
1 parent 36c4c05 commit 2940ca9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ LiveData<ConversationData> getConversationData(long threadId, int jumpToPosition
lastSeenPosition = DatabaseFactory.getMmsSmsDatabase(context).getMessagePositionForLastSeen(threadId, lastSeen);
}

if (lastSeenPosition <= 0) {
lastSeen = 0;
}

return new ConversationData(lastSeen, lastSeenPosition, hasSent, isMessageRequestAccepted, hasPreMessageRequestMessages, jumpToPosition);
}
}

0 comments on commit 2940ca9

Please sign in to comment.