show total unread count in fab

This commit is contained in:
Christian Schneppe 2021-02-01 16:36:09 +01:00
parent f320761a1b
commit 6194293bba

View file

@ -2685,9 +2685,9 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
conversation.populateWithMessages(ConversationFragment.this.messageList);
updateSnackBar(conversation);
updateStatusMessages();
if (conversation.getReceivedMessagesCountSinceUuid(lastMessageUuid) != 0) {
if (conversation.unreadCount() > 0) {
binding.unreadCountCustomView.setVisibility(View.VISIBLE);
binding.unreadCountCustomView.setUnreadCount(conversation.getReceivedMessagesCountSinceUuid(lastMessageUuid));
binding.unreadCountCustomView.setUnreadCount(conversation.unreadCount());
}
this.messageListAdapter.notifyDataSetChanged();
updateChatMsgHint();