Skip to content

Commit

Permalink
Fix freeze UI chat bug
Browse files Browse the repository at this point in the history
Empty lines would cause that.
  • Loading branch information
zapek committed Dec 26, 2024
1 parent afed956 commit 5273d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/main/java/io/xeres/ui/support/chat/ChatLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ public List<Content> getChatContents()
*/
public boolean isRich()
{
return contents.size() > 1 || !(contents.getFirst() instanceof ContentText);
return contents.size() > 1 || (contents.size() == 1 && !(contents.getFirst() instanceof ContentText));
}
}

0 comments on commit 5273d51

Please sign in to comment.