Commit facdb777 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update DirectMessageRoomListHeader.java

parent abfe2ada
...@@ -28,11 +28,18 @@ public class DirectMessageRoomListHeader implements RoomListHeader { ...@@ -28,11 +28,18 @@ public class DirectMessageRoomListHeader implements RoomListHeader {
@Override @Override
public boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList) { public boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList) {
return true; for (RoomSidebar roomSidebar: roomSidebarList) {
if (roomSidebar.getType().equals(Room.TYPE_DIRECT_MESSAGE)
&& !roomSidebar.isAlert()
&& !roomSidebar.isFavorite()) {
return true;
}
}
return false;
} }
@Override @Override
public ClickListener getClickListener() { public ClickListener getClickListener() {
return clickListener; return clickListener;
} }
} }
\ 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