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

Update DirectMessageRoomListHeader.java

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