diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java index 7eab5d126..18f56c362 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java @@ -196,15 +196,17 @@ public class ConversationItem extends AbstractFlexibleItem 0) { + if (conversation.getCount() == 2 || (conversation.getCount() == 1 && + conversation.getSessionId().equals("0"))) { + holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_online)); + } else { + holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_offline)); + } } else { - holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_online)); + holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_offline)); } - //holder.moreMenuButton.setContentDescription(String.format(resources.getString(R.string - // .nc_description_more_menu_one_to_one), conversation.getDisplayName())); - if (!TextUtils.isEmpty(conversation.getName())) { GlideUrl glideUrl = new GlideUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(), conversation.getName(), R.dimen.avatar_size), new LazyHeaders.Builder() @@ -226,9 +228,6 @@ public class ConversationItem extends AbstractFlexibleItem guestList; + public HashMap> guestList; @JsonField(name = "participants") - public List participants; + public HashMap> participants; @JsonField(name = "participantType", typeConverter = EnumParticipantTypeConverter.class) public Participant.ParticipantType participantType; @JsonField(name = "hasPassword")