Commit 44964cbc authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update RoomListItemViewHolder.java

parent 6159967c
...@@ -48,7 +48,12 @@ public class RoomListItemViewHolder extends RecyclerView.ViewHolder { ...@@ -48,7 +48,12 @@ public class RoomListItemViewHolder extends RecyclerView.ViewHolder {
itemView.setUnreadCount(0); itemView.setUnreadCount(0);
itemView.setTag(spotlight); itemView.setTag(spotlight);
showRoomIcon(spotlight.getType()); String roomType = spotlight.getType();
if (roomType.equals(Room.TYPE_DIRECT_MESSAGE)) {
showUserStatusIcon(spotlight.getStatus());
} else {
showRoomIcon(roomType);
}
} }
/** /**
...@@ -91,7 +96,7 @@ public class RoomListItemViewHolder extends RecyclerView.ViewHolder { ...@@ -91,7 +96,7 @@ public class RoomListItemViewHolder extends RecyclerView.ViewHolder {
itemView.showPrivateChannelIcon(); itemView.showPrivateChannelIcon();
break; break;
default: default:
throw new AssertionError("Room type doesn't satisfies. Room type:" + roomType); throw new AssertionError("Room type doesn't satisfies the method documentation. Room type is:" + roomType);
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment