Commit 5a3d4a2f authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update DirectMessageRoomListHeader.java

parent 5956b55e
...@@ -2,6 +2,7 @@ package chat.rocket.android.layouthelper.chatroom.roomlist; ...@@ -2,6 +2,7 @@ package chat.rocket.android.layouthelper.chatroom.roomlist;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import chat.rocket.core.models.RoomSidebar;
import java.util.List; import java.util.List;
import chat.rocket.core.models.Room; import chat.rocket.core.models.Room;
...@@ -21,12 +22,12 @@ public class DirectMessageRoomListHeader implements RoomListHeader { ...@@ -21,12 +22,12 @@ public class DirectMessageRoomListHeader implements RoomListHeader {
} }
@Override @Override
public boolean owns(Room room) { public boolean owns(RoomSidebar roomSidebar) {
return room.isDirectMessage(); return roomSidebar.getType().equals(Room.TYPE_DIRECT_MESSAGE);
} }
@Override @Override
public boolean shouldShow(@NonNull List<Room> roomList) { public boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList) {
return true; return true;
} }
......
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