use of chatty.User in project chatty by chatty.
the class ChannelTextPane method getUserElementFromLine.
private Element getUserElementFromLine(Element line) {
for (int i = 0; i < 20; i++) {
if (i > line.getElementCount()) {
break;
}
Element element = line.getElement(i);
User elementUser = getUserFromElement(element);
// If there is a User object, we're done
if (elementUser != null) {
return element;
}
}
// No User object was found, so it's probably not a chat message
return null;
}
Aggregations