mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 02:36:55 +00:00
Fixed typing indicator showing as unread message.
This commit is contained in:
committed by
Cody Henthorne
parent
e4d43ade93
commit
355a498b9b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user