Error when a message contains a list item that has only inline code in it
Sending a message that includes content like that:
code
Freezes the app with an infinite loop of errors:
(fractal:2): Gtk-CRITICAL **: 17:33:19.916: gtk_widget_measure: assertion 'for_size >= -1' failed
It doesn't seem like any other use of the inline code alone, or the list items trigger this error.
Several tweaks prevent the issue:
- Removing the bullet or number in front of the list item.
- Disabling the wrapping of the label containing the code.
I am guessing the error is upstream in GTK or libadwaita, but I couldn't reproduce it with a minimal app so creating an issue there wouldn't be very helpful.
A workaround could be to preprend the bullet or number to the label of the item, instead of creating two separate labels.