Skip to content

Commit

Permalink
hide status of "Talk updates" conversation
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
mahibi committed Feb 23, 2022
1 parent 8a1f39e commit 5921442
Showing 1 changed file with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,21 @@ public void bindViewHolder(FlexibleAdapter<IFlexible> adapter, ConversationItemV
holder.pinnedConversationImageView.setVisibility(View.GONE);
}

if (status != null && status.getStatus().equals(StatusType.DND.getString())) {
setOnlineStateIcon(holder, R.drawable.ic_user_status_dnd_with_border);
} else if (status != null && status.getIcon() != null && !status.getIcon().isEmpty()) {
holder.userStatusOnlineState.setVisibility(View.GONE);
holder.userStatusEmoji.setVisibility(View.VISIBLE);
holder.userStatusEmoji.setText(status.getIcon());
} else if (status != null && status.getStatus().equals(StatusType.AWAY.getString())) {
setOnlineStateIcon(holder, R.drawable.ic_user_status_away_with_border);
} else if (status != null && status.getStatus().equals(StatusType.ONLINE.getString())) {
setOnlineStateIcon(holder, R.drawable.online_status_with_border);
if (!Conversation.ConversationType.ROOM_SYSTEM.equals(conversation.getType())) {
if (status != null && status.getStatus().equals(StatusType.DND.getString())) {
setOnlineStateIcon(holder, R.drawable.ic_user_status_dnd_with_border);
} else if (status != null && status.getIcon() != null && !status.getIcon().isEmpty()) {
holder.userStatusOnlineState.setVisibility(View.GONE);
holder.userStatusEmoji.setVisibility(View.VISIBLE);
holder.userStatusEmoji.setText(status.getIcon());
} else if (status != null && status.getStatus().equals(StatusType.AWAY.getString())) {
setOnlineStateIcon(holder, R.drawable.ic_user_status_away_with_border);
} else if (status != null && status.getStatus().equals(StatusType.ONLINE.getString())) {
setOnlineStateIcon(holder, R.drawable.online_status_with_border);
} else {
holder.userStatusEmoji.setVisibility(View.GONE);
holder.userStatusOnlineState.setVisibility(View.GONE);
}
} else {
holder.userStatusEmoji.setVisibility(View.GONE);
holder.userStatusOnlineState.setVisibility(View.GONE);
Expand Down

0 comments on commit 5921442

Please sign in to comment.