Fix sending receipts.

Fixes #10016
This commit is contained in:
Alex Hart
2020-09-15 10:35:11 -03:00
committed by Greyson Parrelli
parent 0271e4c918
commit 5943b9d7d6
3 changed files with 22 additions and 4 deletions

View File

@@ -1424,7 +1424,10 @@ public class ConversationFragment extends LoggingFragment {
public ConversationSnapToTopDataObserver(@NonNull RecyclerView recyclerView,
@Nullable ScrollRequestValidator scrollRequestValidator)
{
super(recyclerView, scrollRequestValidator);
super(recyclerView, scrollRequestValidator, () -> {
list.scrollToPosition(0);
list.post(ConversationFragment.this::postMarkAsReadRequest);
});
}
@Override