Commit 5956b55e authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update ChannelRoomListHeader.java

parent 0af8de4c
...@@ -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 ChannelRoomListHeader implements RoomListHeader { ...@@ -21,12 +22,12 @@ public class ChannelRoomListHeader implements RoomListHeader {
} }
@Override @Override
public boolean owns(Room room) { public boolean owns(RoomSidebar roomSidebar) {
return room.isChannel() || room.isPrivate(); return roomSidebar.getType().equals(Room.TYPE_CHANNEL) || roomSidebar.getType().equals(Room.TYPE_PRIVATE);
} }
@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