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