use of org.jivesoftware.sparkplugin.JingleStateManager.JingleRoomState in project Spark by igniterealtime.
the class JingleTabHandler method isTabHandled.
public boolean isTabHandled(SparkTab tab, Component component, boolean isSelectedTab, boolean chatFrameFocused) {
if (component instanceof ChatRoom) {
JingleRoomState roomState = manager.getJingleRoomState((ChatRoom) component);
if (roomState == null) {
// This is not a jingle room.
return false;
}
// This is a room with a jingle session.
handleJingleRoom(roomState, tab, (ChatRoom) component, isSelectedTab, chatFrameFocused);
return true;
}
return false;
}
Aggregations