Fixed typing indicator showing as unread message.

fork-5.53.8
Shivansh Goel 2021-02-01 12:50:57 +05:30 zatwierdzone przez Cody Henthorne
rodzic e4d43ade93
commit 355a498b9b
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -403,7 +403,9 @@ public class ConversationAdapter
}
void onBindLastSeenViewHolder(StickyHeaderViewHolder viewHolder, int position) {
viewHolder.setText(viewHolder.itemView.getContext().getResources().getQuantityString(R.plurals.ConversationAdapter_n_unread_messages, (position + 1), (position + 1)));
int messagePosition = isTypingViewEnabled ? position - 1 : position;
int count = messagePosition + 1;
viewHolder.setText(viewHolder.itemView.getContext().getResources().getQuantityString(R.plurals.ConversationAdapter_n_unread_messages, count, count));
if (hasWallpaper) {
viewHolder.setBackgroundRes(R.drawable.wallpaper_bubble_background_8);