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 eecd659 commit 36c4c05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ public void reload(Recipient recipient, long threadId) {
if (this.threadId != threadId) {
this.threadId = threadId;
messageRequestViewModel.setConversationInfo(recipient.getId(), threadId);
conversationViewModel.onConversationDataAvailable(threadId, -1);
initializeListAdapter();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void onAttachmentKeyboardOpen() {
}

void onConversationDataAvailable(long threadId, int startingPosition) {
Log.d(TAG, "[onConversationDataAvailable] threadId: " + threadId + ", startingPosition: " + startingPosition);
this.jumpToPosition = startingPosition;

this.threadId.setValue(threadId);
Expand Down

0 comments on commit 36c4c05

Please sign in to comment.