package chat.rocket.android.layouthelper.chatroom.roomlist;

import android.support.annotation.NonNull;

import java.util.List;
import chat.rocket.core.models.Room;

public class ChannelRoomListHeader implements RoomListHeader {

  private final String title;
  private final ClickListener clickListener;

  public ChannelRoomListHeader(String title, ClickListener clickListener) {
    this.title = title;
    this.clickListener = clickListener;
  }

  @Override
  public String getTitle() {
    return title;
  }

  @Override
  public boolean owns(Room room) {
    return room.isChannel() || room.isPrivate();
  }

  @Override
  public boolean shouldShow(@NonNull List<Room> roomList) {
    return true;
  }

  @Override
  public ClickListener getClickListener() {
    return clickListener;
  }
}

@@ -98,16 +98,60 @@
 nNull;%0A%0A
+import chat.rocket.core.models.RoomSidebar;%0A
 import j
@@ -594,63 +594,139 @@
 Room
- room) %7B%0A    return room.isChannel() %7C%7C room.isPrivate(
+Sidebar roomSidebar) %7B%0A    return roomSidebar.getType().equals(Room.TYPE_CHANNEL) %7C%7C roomSidebar.getType().equals(Room.TYPE_PRIVATE
 );%0A 
@@ -791,14 +791,28 @@
 Room
-%3E room
+Sidebar%3E roomSidebar
 List

Update ChannelRoomListHeader.java